From cbfcaaea8137885ab67953203297e87b5d381760 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 6 Oct 2026 07:37:51 +0000 Subject: [PATCH] =?UTF-8?q?fix(desktop):=20=E6=97=A5=E5=BF=97=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=8F=B0=E4=B8=8D=E5=86=8D=E8=AE=A9=E6=95=B4=E9=A1=B5?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 控制台按提示条以下的剩余高度排版,只滚动日志窗口。 Co-authored-by: Shiroha --- .changeset/desktop-console-page-height.md | 5 +++++ packages/desktop/src/renderer/styles/pages.css | 4 +++- packages/desktop/src/renderer/styles/shell.css | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .changeset/desktop-console-page-height.md diff --git a/.changeset/desktop-console-page-height.md b/.changeset/desktop-console-page-height.md new file mode 100644 index 00000000..7542ee4a --- /dev/null +++ b/.changeset/desktop-console-page-height.md @@ -0,0 +1,5 @@ +--- +"@sfmc-bds/desktop": patch +--- + +日志控制台按剩余高度排版,整页不再滚动。 diff --git a/packages/desktop/src/renderer/styles/pages.css b/packages/desktop/src/renderer/styles/pages.css index 5177f4e7..fbe9e70d 100644 --- a/packages/desktop/src/renderer/styles/pages.css +++ b/packages/desktop/src/renderer/styles/pages.css @@ -11,9 +11,11 @@ padding: 20px 28px 32px; } +/* 占满提示条以下的剩余高度,由页面内部滚动 */ .page-fill { - height: 100%; + flex: 1; min-height: 0; + overflow: hidden; padding-bottom: 16px; } diff --git a/packages/desktop/src/renderer/styles/shell.css b/packages/desktop/src/renderer/styles/shell.css index 39417b73..d02c1bd3 100644 --- a/packages/desktop/src/renderer/styles/shell.css +++ b/packages/desktop/src/renderer/styles/shell.css @@ -30,6 +30,8 @@ } .content { + display: flex; + flex-direction: column; flex: 1; min-height: 0; overflow: auto; @@ -60,7 +62,7 @@ /* 内置编辑器占满内容区;切页时隐藏文档并保留编辑状态。 */ .studio-workspace { - height: 100%; + flex: 1; min-height: 0; }