From faf38e2fd32b93468fc9a99b372d2433ad78ec03 Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Fri, 28 Aug 2026 20:12:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E4=BB=AA=E8=A1=A8=E7=9B=98=E6=A8=AA=E5=90=91=E6=BA=A2?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 375px 视口下页面被撑到 763px:快速开始卡片的 curl 示例
固有宽度沿 flex/grid 链层层撑破祖先(子项默认 min-width:auto
不可收缩,overflow-x-auto 形同虚设)。

- ShellLayout:flex-1 容器与 main 加 min-w-0 切断宽度传播(所有页面受益)
- DashboardView:快速开始卡片各块加 min-w-0,pre 的边框/背景
  移入 overflow-hidden 容器、自身横滚

Playwright 实测 375px 视口滚动宽度 763 → 375,与视口齐平
---
 web/src/components/layout/ShellLayout.vue |  4 ++--
 web/src/views/console/DashboardView.vue   | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/web/src/components/layout/ShellLayout.vue b/web/src/components/layout/ShellLayout.vue
index 45d934a..fbd5217 100644
--- a/web/src/components/layout/ShellLayout.vue
+++ b/web/src/components/layout/ShellLayout.vue
@@ -116,7 +116,7 @@ async function logout() {
       
     
 
-    
+
-
+
diff --git a/web/src/views/console/DashboardView.vue b/web/src/views/console/DashboardView.vue index 6142b74..767b1bc 100644 --- a/web/src/views/console/DashboardView.vue +++ b/web/src/views/console/DashboardView.vue @@ -145,14 +145,14 @@ onMounted(load)
-
+

快速开始

通过兼容端点接入,OpenAI / Anthropic 协议自动转换

-
+

Base URL

{{ baseURL }} @@ -162,7 +162,7 @@ onMounted(load)
-
+

兼容

messages @@ -171,10 +171,10 @@ onMounted(load)
-
+

curl 示例

-
-
{{ curlCmd }}
+
+
{{ curlCmd }}