From 91baf37f52694e06c2227a78fd70ed1e15f59f1f Mon Sep 17 00:00:00 2001 From: kicer Date: Sun, 20 Sep 2026 13:14:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF:=20PDF=20=E9=A1=B5=E5=86=85?= =?UTF-8?q?=E9=A2=84=E8=A7=88(pdfViewerEnabled=20=E5=88=86=E6=B5=81)=20+?= =?UTF-8?q?=20=E5=8F=8C=E5=87=BB=E5=85=A8=E5=B1=8F=E5=90=AB=20msg-actions?= =?UTF-8?q?=20+=20=E6=BA=90=E7=A0=81=20eye=20=E5=88=87=E6=8D=A2=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 13 +++++ app/server/public/index.html | 92 ++++++++++++++++++++++++++++++--- 2 files changed, 97 insertions(+), 8 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index b70140a..0000b97 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -896,6 +896,19 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0 border: none; border-radius: 50%; background: rgba(255,255,255,0.18); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; } +/* 源码切换 eye 钮:与关闭钮同款,居其左;仅当前内容有源文本时显示(setFsSource 控显隐) */ +.fs-eye { right: 58px; display: flex; align-items: center; justify-content: center; } +.fs-eye svg { width: 17px; height: 17px; } +.fs-eye.on { background: rgba(255,255,255,0.85); color: #333; } +/* 源码面板:与 #fs-body 互斥显示(toggleFsSrc 切换);不参与双指缩放逻辑 */ +.fs-src-panel { padding: 14px 16px; } +#fs-src-code { + margin: 0; white-space: pre-wrap; word-break: break-word; + font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; + font-size: 12.5px; line-height: 1.55; color: var(--ink); + background: #fafbfd; border: 1px solid var(--border); border-radius: 8px; + padding: 10px 12px; max-height: 76vh; overflow: auto; +} #fs-body .bubble-ai, #fs-body .bubble-user { max-width: 100%; box-shadow: none; } #fs-body .tool-card { max-width: 100%; } #fs-body .tool-card pre { max-height: 65vh; } diff --git a/app/server/public/index.html b/app/server/public/index.html index 8d4889b..8bb411f 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -411,7 +411,12 @@