This commit is contained in:
iqudoo
2026-06-14 12:07:49 +08:00
parent 4955b1f2e2
commit 2bd89c517c
4 changed files with 30 additions and 19 deletions

View File

@@ -721,8 +721,8 @@ export const LayoutPreview: React.FC<LayoutPreviewProps> = ({
<div
className={
isMobileVariant
? 'flex flex-col items-center space-y-4 pb-4'
: 'flex flex-wrap justify-center content-start w-full pb-8'
? 'flex flex-col items-center justify-center min-h-full w-full space-y-4 pb-4'
: 'flex flex-wrap justify-center content-center w-full min-h-full pb-8'
}
style={isMobileVariant ? undefined : { gap: `${previewPageGapPx}px` }}
>
@@ -741,7 +741,7 @@ export const LayoutPreview: React.FC<LayoutPreviewProps> = ({
</span> */}
</div>
<div
className="bg-white flex items-start justify-start relative select-none overflow-hidden shrink-0"
className="bg-white flex items-center justify-center relative select-none overflow-hidden shrink-0"
style={{
width: `${pageCardWidthPx}px`,
height: `${currentPaperH * previewScale}px`,

View File

@@ -2324,17 +2324,18 @@ export const PropSidebar: React.FC<PropSidebarProps> = ({
<span></span>
</button>
)}
<button
type="button"
onClick={() => elementClipboard?.copySelectedElements()}
disabled={!elementClipboard?.canCopy}
className="mobile-design-props-nav-btn"
aria-label="复制选中元素"
title="复制选中元素"
>
<Copy className="w-4 h-4" />
<span></span>
</button>
{elementClipboard?.canCopy && (
<button
type="button"
onClick={() => elementClipboard.copySelectedElements()}
className="mobile-design-props-nav-btn"
aria-label="复制选中元素"
title="复制选中元素"
>
<Copy className="w-4 h-4" />
<span></span>
</button>
)}
<button
type="button"
onClick={() => void deleteSelectedElements()}