From e86657cfd156959fb728b032d100a79c738c536c Mon Sep 17 00:00:00 2001 From: Autumn-27 <53844290+Autumn-27@users.noreply.github.com> Date: Fri, 7 Aug 2026 12:20:15 -0400 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E8=A1=A8=E5=8D=95=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=BA=A2=E5=87=BA(#11)=20+=20LLM=20=E9=85=8D=E7=BD=AE=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=82=B9=E5=A4=96=E9=83=A8=E8=AF=AF=E5=85=B3=E9=97=AD?= =?UTF-8?q?(#13)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #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) --- web/src/app/(main)/system/llm/page.tsx | 6 +++++- web/src/components/ui/dialog.tsx | 2 +- web/src/components/ui/textarea.tsx | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/web/src/app/(main)/system/llm/page.tsx b/web/src/app/(main)/system/llm/page.tsx index 85fbcd0..8e5e491 100644 --- a/web/src/app/(main)/system/llm/page.tsx +++ b/web/src/app/(main)/system/llm/page.tsx @@ -141,7 +141,11 @@ function NewProfileDialog({ onCreated }: { onCreated: (id: string) => void }) { 新建 - + e.preventDefault()} + > 新建 Profile 新建后不会自动激活,请在列表中「设为激活」以启用。 diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsx index d9aecca..230ffd5 100644 --- a/web/src/components/ui/dialog.tsx +++ b/web/src/components/ui/dialog.tsx @@ -61,7 +61,7 @@ function DialogContent({ ) {