mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
This commit is contained in:
1 parent
a3435d5d8d
commit
04e5cd7071
3 files changed
+14
-4
No files matched your search
@@ -285,6 +285,13 @@ body[data-hide-meta] .meta-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page-list-panel,
|
||||
.viewer-panel,
|
||||
.meta-panel {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--line-strong) transparent;
|
||||
}
|
||||
|
||||
.page-list-panel,
|
||||
.meta-panel {
|
||||
min-height: 0;
|
||||
|
||||
@@ -2517,6 +2517,7 @@ function scrollbarWidth() {
|
||||
probe.style.width = "100px";
|
||||
probe.style.height = "100px";
|
||||
probe.style.overflow = "scroll";
|
||||
probe.style.scrollbarWidth = getComputedStyle(el.viewerPanel).scrollbarWidth;
|
||||
probe.style.left = "-9999px";
|
||||
document.body.append(probe);
|
||||
const width = probe.offsetWidth - probe.clientWidth;
|
||||
|
||||
Reference in new issue
Block a user