修复图片编辑器弹窗显示问题,设置默认黑暗模式

- 修复图片编辑器弹窗:使用与preview-attachment相同的居中方式
- 设置项目默认使用黑暗模式(defaultTheme: dark)
This commit is contained in:
Your Name 2025-12-29 17:02:47 +08:00
parent c5f37a374a
commit 0112baf88c
2 changed files with 6 additions and 3 deletions

View File

@ -147,7 +147,7 @@ export default function RootLayout({
<body className="antialiased">
<ThemeProvider
attribute="class"
defaultTheme="system"
defaultTheme="dark"
disableTransitionOnChange
enableSystem
>

View File

@ -564,8 +564,11 @@ export function ImageAnnotator({ imageUrl, onConfirm, onCancel }: ImageAnnotator
};
return (
<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/70 backdrop-blur-md p-4" onClick={onCancel}>
{/* 弹窗容器 - 固定在屏幕中央,固定大小 */}
<div
className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/70 backdrop-blur-md p-4"
onClick={onCancel}
>
{/* 弹窗容器 - 使用与preview-attachment相同的居中方式 */}
<div
className="flex flex-col overflow-hidden rounded-xl border border-border bg-background shadow-2xl"
style={{