fix(ui): 表单弹窗溢出(#11) + LLM 配置弹窗点外部误关闭(#13)

#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:
Autumn-27andClaude Opus 5 committed 2026-08-07 12:20:15 -04:00
1 parent 5000aadd8f
commit e86657cfd1
3 files changed
+10 -3

No files matched your search

+5 -1
View File
@@ -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>