fix(short-drama-agent-front): 统一剧本内容背景与角色通栏样式
This commit is contained in:
1 parent
cbba366874
commit
a8ecf37e78
1 file changed
+18
-2
@@ -188,8 +188,8 @@ function exportScript() {
|
||||
</div>
|
||||
<NScrollbar v-if="tab !== 'episodes'" class="panel-scroll"
|
||||
><div v-if="tab === 'characters'" class="p-6 lg:p-8">
|
||||
<!-- 角色条目自带内边距,抵消列表的重复留白,使内容边界与世界观一致。 -->
|
||||
<div v-if="project?.characters.length" class="record-list -m-5">
|
||||
<!-- 角色背景通栏铺满,文字边界仍与世界观一致,上下间距保持不变。 -->
|
||||
<div v-if="project?.characters.length" class="record-list script-character-list -my-5">
|
||||
<article v-for="character in project.characters" :key="character.id">
|
||||
<div class="mb-3 flex items-center gap-3">
|
||||
<h3 class="text-lg font-semibold">{{ character.name }}</h3>
|
||||
@@ -278,6 +278,22 @@ function exportScript() {
|
||||
<style>
|
||||
/* 本组件专属布局与 Naive 内部结构覆盖。 */
|
||||
@reference "../../styles/styles.css";
|
||||
/* 仅将角色背景扩展到内容区两侧,条目内文字补回原有的响应式留白。 */
|
||||
.script-character-list {
|
||||
@apply -mx-6 lg:-mx-8;
|
||||
}
|
||||
.script-character-list > article {
|
||||
@apply px-6 lg:px-8;
|
||||
}
|
||||
/* 亮色正文底面与白色页面区分,角色、世界观和审核记录共用同一背景层级。 */
|
||||
:root:not([data-theme='dark']) .script-workspace-page .script-content {
|
||||
background: var(--app-subtle);
|
||||
}
|
||||
/* 保留角色斑马纹和展开详情的层次,不让它们与浅灰内容底面融为一体。 */
|
||||
:root:not([data-theme='dark']) .script-workspace-page .script-content .record-list > article:nth-child(even),
|
||||
:root:not([data-theme='dark']) .script-workspace-page .script-content .json-view {
|
||||
background: var(--app-control);
|
||||
}
|
||||
.stage-strip {
|
||||
@apply flex items-center gap-3;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user