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 507bc161..325a6d1b 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; }