fix(short-drama-agent-front): 修复移动端剧集标题顶部间距
This commit is contained in:
1 parent
b34dc02e39
commit
cbba366874
1 file changed
+12
-14
@@ -412,20 +412,18 @@ onBeforeUnmount(() => observer?.disconnect())
|
||||
.reader-chapter-heading h2 {
|
||||
@apply text-[clamp(18px,2cqw,24px)] font-semibold leading-[1.6] wrap-anywhere;
|
||||
}
|
||||
@media (min-width: 801px) {
|
||||
/* PC 吸顶时保留与目录标题一致的顶部留白,正文从遮挡层后滚过。 */
|
||||
.reader-chapter-heading {
|
||||
top: var(--reader-gutter);
|
||||
}
|
||||
.reader-chapter-heading::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset-inline: 0;
|
||||
top: calc(var(--reader-gutter) * -1);
|
||||
height: var(--reader-gutter);
|
||||
background: var(--reader-background);
|
||||
pointer-events: none;
|
||||
}
|
||||
/* 各屏幕吸顶时均保留正文顶部留白,滚动文字由同色遮挡层覆盖,避免手机标题贴边。 */
|
||||
.reader-chapter-heading {
|
||||
top: var(--reader-gutter);
|
||||
}
|
||||
.reader-chapter-heading::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset-inline: 0;
|
||||
top: calc(var(--reader-gutter) * -1);
|
||||
height: var(--reader-gutter);
|
||||
background: var(--reader-background);
|
||||
pointer-events: none;
|
||||
}
|
||||
@media (max-width: 1023px) {
|
||||
/* 与角色设定、世界观的 p-6 / lg:p-8 使用相同的响应式内容边界。 */
|
||||
|
||||
Reference in new issue
Block a user