Revert "Stop scrollbar from causing content shift"

This reverts commit 4223540c4f.
pull/1997/head
Tienson Qin 2021-05-27 10:28:10 +08:00
parent fe8eb8d445
commit 45228668ca
3 changed files with 1 additions and 17 deletions

View File

@ -36,9 +36,6 @@
:nodeIntegrationInWorker false
:contextIsolation true
:spellcheck true
;; Remove OverlayScrollbars and transition `.scrollbar-spacing`
;; to use `scollbar-gutter` after the feature is implemented in browsers.
:enableBlinkFeatures 'OverlayScrollbars'
:preload (path/join js/__dirname "js/preload.js")}}
linux?
(assoc :icon (path/join js/__dirname "icons/logseq.png")))

View File

@ -314,7 +314,7 @@
:route-match route-match})
[:div.#app-container.h-screen.flex
[:div.flex-1.h-full.flex.flex-col.overflow-y-auto#left-container.relative
[:div.scrollbar-spacing
[:div
(header/header {:open-fn open-fn
:white? white?
:current-repo current-repo

View File

@ -198,16 +198,3 @@
.cp__sidebar-main-content[data-is-global-graph-pages='true'] {
padding: 0;
}
@supports not (overflow-y: overlay) {
.scrollbar-spacing {
overflow-y: auto;
}
}
@supports (overflow-y: overlay) {
.scrollbar-spacing {
overflow-y: overlay;
}
}