fix(short-drama-agent-front): 统一工作区间距与亮色背景

This commit is contained in:
GJ committed 2026-10-08 16:05:28 +08:00
1 parent d588e0d033
commit 967c4ebea1
10 files changed
+87 -60

No files matched your search

+41 -2
View File
@@ -1,5 +1,8 @@
/* 管理后台视口边界:document 不滚动,各个工作区和面板独立滚动。 */
:root {
/* 页面外层留白与模块间距统一为 15px,各工作区共用同一对齐基线。 */
--app-content-padding: 15px;
--app-content-gap: 15px;
--app-ink: #191919;
--app-muted: #707070;
--app-body: #ffffff;
@@ -137,7 +140,30 @@ body {
overflow: hidden;
}
.workspace-feedback .n-alert + .n-alert {
margin-top: 8px;
margin-top: var(--app-content-gap);
}
/* 页面级提示条统一为单行 44px,高度随长文换行自然增加;文字缩进与正文面板一致。 */
:is(.project-notices, .workspace-notice, .workspace-feedback) .n-alert,
.workspace-scroll-content > .n-alert {
padding: 0;
}
:is(.project-notices, .workspace-notice, .workspace-feedback) .n-alert-body,
.workspace-scroll-content > .n-alert .n-alert-body {
padding: 10px 20px;
line-height: 24px;
}
/* 行内下一步入口沿用提示行高,不额外撑高提示条。 */
:is(.project-notices, .workspace-notice, .workspace-feedback) .text-button,
.workspace-scroll-content > .n-alert .text-button {
padding-block: 0;
line-height: inherit;
}
/* 正文内的提示与筛选、列表共用模块间距,首项不重复叠加顶部留白。 */
.workspace-scroll-content > .n-alert {
margin-top: var(--app-content-gap);
}
.workspace-scroll-content > .n-alert:first-child {
margin-top: 0;
}
.overview-content {
padding-bottom: 8px;
@@ -146,7 +172,7 @@ body {
.workspace-section-stack {
display: flex;
flex-direction: column;
gap: 20px;
gap: var(--app-content-gap);
}
.workspace-section-stack > * {
margin-block: 0 !important;
@@ -247,6 +273,10 @@ body {
background: var(--app-surface);
align-items: stretch;
}
/* 亮色工作区标签栏统一使用浅灰背景,剧本创作与拆解共享视觉层次。 */
:root:not([data-theme='dark']) .workspace-tabs > .n-tabs-nav {
background: var(--app-subtle);
}
.workspace-tabs .n-tabs-tab {
min-height: 40px;
box-sizing: border-box;
@@ -345,6 +375,11 @@ body {
min-width: 0;
min-height: 0;
}
/* 亮色分栏工作区共用更浅的外层底色,区分白色页面与内部内容块。 */
:root:not([data-theme='dark']) .workspace-surface,
:root:not([data-theme='dark']) .workspace-surface > .directory-panel {
background: color-mix(in srgb, var(--app-subtle) 60%, var(--app-body));
}
.image-history.n-scrollbar,
.table-scroll.n-scrollbar {
height: auto;
@@ -462,6 +497,10 @@ body {
}
}
@media (max-width: 760px) {
:root {
--app-content-padding: 15px;
--app-content-gap: 15px;
}
.toolbar-episode {
flex: 1;
}