Skip to content

Commit d0d57c4

Browse files
committedFeb 18, 2025
fix: 底栏会挡住右下角的反链或者大纲页签
- https://ld246.com/article/1739426355855/comment/1739846809548#comments - 修复选择器错误
1 parent 283564f commit d0d57c4

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed
 

‎style/dock.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ html[data-whisper-status="show"] .layout__dockr.layout--float {
7676

7777
// 取消钉住右侧栏时,右侧文档的滚动条与侧栏之间需要间隔
7878
// 右侧没有 .layout__resize--lr 的编辑器就是最靠右的编辑器
79-
html[data-whisper-layout-dockr="float"] .layout__center .fn__flex-1:not(:has(+ .layout__resize--lr)) > div[data-type="wnd"] > .layout-tab-container > .fn__flex-1 {
79+
html[data-whisper-layout-dockr="float"] .layout__center .fn__flex:not(:has(+ .layout__resize--lr)) > div[data-type="wnd"] > .layout-tab-container > .fn__flex-1 {
8080
// 编辑器
8181
&.protyle {
8282
.protyle-content {

‎style/editor.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,14 +309,21 @@
309309
}
310310

311311
// 右下角的编辑器,滚动条的底部需要留出 24px,否则会被底栏挡住
312-
html[data-whisper-status="show"][data-whisper-layout-dockr="float"] .layout__center .fn__flex-1:not(:has(+ .layout__resize--lr)):not(:has(+ .layout__resize)) > div[data-type="wnd"] > .layout-tab-container > .fn__flex-1 {
312+
html[data-whisper-status="show"][data-whisper-layout-dockr="float"] .layout__center .fn__flex:not(:has(+ .layout__resize--lr)):not(:has(+ .layout__resize)) > div[data-type="wnd"] > .layout-tab-container > .fn__flex-1 {
313313
&.protyle .protyle-content, // 编辑器
314314
#viewerContainer { // PDF 阅读器
315315
&::-webkit-scrollbar-track {
316-
margin-bottom: 24px
316+
margin-bottom: 24px // 等于底栏 status 的高度
317317
}
318318
}
319319
}
320+
// 底栏会挡住右下角的反链或者大纲页签
321+
html[data-whisper-status="show"][data-whisper-dock-bottom="hide"] .layout__center .fn__flex:not(:has(+ .layout__resize--lr)):not(:has(+ .layout__resize)) > div[data-type="wnd"] > .layout-tab-container > .fn__flex-1 {
322+
&.sy__backlink .backlinkList + .block__icons,
323+
&.sy__outline > .fn__flex-1 {
324+
padding-bottom: 24px !important; // 等于底栏 status 的高度
325+
}
326+
}
320327

321328

322329
// ————————————————————编辑器顶部————————————————————

‎style/tab-bar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
}
190190
}
191191
// 新窗口的右上角留一点位置用来拖拽窗口
192-
.body--window #layouts .fn__flex-1:not(:has(+ .layout__resize--lr)) > div[data-type="wnd"] > .fn__flex > .layout-tab-bar--readonly {
192+
.body--window #layouts .fn__flex:not(:has(+ .layout__resize--lr)) > div[data-type="wnd"] > .fn__flex > .layout-tab-bar--readonly {
193193
min-width: 100px;
194194
}
195195
.body--window .layout__resize + .fn__flex-1 > div[data-type="wnd"] > .fn__flex > .layout-tab-bar--readonly {

0 commit comments

Comments
 (0)
Please sign in to comment.