mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 22:24:09 +00:00
fix(whiteboard): makes sure full screen pages displaying without scrollbar
This commit is contained in:
@@ -392,7 +392,8 @@
|
||||
(when-let [id (state/get-edit-input-id)]
|
||||
(let [format (:block/format (state/get-edit-block))]
|
||||
(editor-handler/upload-asset id files format editor-handler/*asset-uploading? true))))})
|
||||
(common-handler/listen-to-scroll! element))
|
||||
(when (:margin-less-pages? (first (:rum/args state))) ;; makes sure full screen pages displaying without scrollbar
|
||||
(set! (.. element -scrollTop) 0)))
|
||||
state)}
|
||||
[{:keys [route-match margin-less-pages? route-name indexeddb-support? db-restoring? main-content show-action-bar? show-recording-bar?]}]
|
||||
(let [left-sidebar-open? (state/sub :ui/left-sidebar-open?)
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
#main-content-container[data-is-margin-less-pages=true] {
|
||||
padding: 0 !important;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.left-sidebar-inner {
|
||||
|
||||
Reference in New Issue
Block a user