Skip to content

Commit 4d22b18

Browse files
committed
feat: adjust image styling in ImagePreviewModal for better responsiveness and alignment
1 parent 00d7793 commit 4d22b18

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/renderer/src/components/pages/chat/ImagePreviewModal.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,13 @@ export default function ImagePreviewModal({
154154
src={currentImageUrl}
155155
alt="导出预览"
156156
style={{
157+
width: `${IMAGE_WIDTH_CONFIG[imageWidth].width}px`,
157158
maxWidth: '100%',
159+
height: 'auto',
158160
border: '1px solid #d9d9d9',
159-
opacity: isRegenerating ? 0.5 : 1
161+
opacity: isRegenerating ? 0.5 : 1,
162+
display: 'block',
163+
margin: '0 auto'
160164
}}
161165
/>
162166
)}

0 commit comments

Comments
 (0)