fix(whiteboard): makes sure full screen pages displaying without scrollbar

This commit is contained in:
Peng Xiao
2022-11-15 14:08:28 +08:00
parent 306fe621bb
commit d5d2d3d71d
2 changed files with 3 additions and 1 deletions

View File

@@ -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?)

View File

@@ -72,6 +72,7 @@
#main-content-container[data-is-margin-less-pages=true] {
padding: 0 !important;
position: relative;
overflow: hidden;
}
.left-sidebar-inner {