#11 Textarea(field-sizing-content 自动增高)加 max-h-[45vh]+overflow-auto 到顶改内部滚动,DialogContent 加 max-h-[90dvh]+overflow-y-auto 兜底;#13 新建 Profile 弹窗加 onInteractOutside preventDefault,点外部不再关闭。 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
1 parent
5000aadd8f
commit
e86657cfd1
3 files changed
+10
-3
No files matched your search
@@ -141,7 +141,11 @@ function NewProfileDialog({ onCreated }: { onCreated: (id: string) => void }) {
|
||||
<PlusIcon /> 新建
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
<DialogContent className="sm:max-w-lg">
|
||||
<DialogContent
|
||||
className="sm:max-w-lg"
|
||||
// don't dismiss a half-filled form on an outside click (Esc / ✕ still close).
|
||||
onInteractOutside={(e) => e.preventDefault()}
|
||||
>
|
||||
<DialogHeader>
|
||||
<DialogTitle>新建 Profile</DialogTitle>
|
||||
<DialogDescription>新建后不会自动激活,请在列表中「设为激活」以启用。</DialogDescription>
|
||||
|
||||
Reference in new issue
Block a user