mirror of https://github.com/logseq/logseq
Allow scroll
parent
2e687e2f8b
commit
c03456374a
|
@ -298,15 +298,11 @@
|
|||
(handler/hide-right-sidebar)
|
||||
(handler/show-right-sidebar))))}
|
||||
(svg/menu)]]]]
|
||||
[:main#main.flex-1.relative.z-0.focus:outline-none.overflow-hidden
|
||||
{:tabIndex "0"
|
||||
:style {:width "100%"
|
||||
:height "100%"}}
|
||||
[:main#main.flex-1.relative.z-0.focus:outline-none.overflow-y-auto
|
||||
{:tabIndex "0"}
|
||||
[:div#main-content
|
||||
{:style {:width "100%"
|
||||
:height "100%"
|
||||
:overflow-y "scroll"
|
||||
:padding-right 17
|
||||
:box-sizing "content-box"}}
|
||||
[:div.flex.justify-center
|
||||
[:div.flex-1.m-6#main-content-container
|
||||
|
|
|
@ -1086,11 +1086,14 @@
|
|||
(let [sidebar (dom/by-id "right-sidebar")]
|
||||
(dom/remove-class! (dom/by-id "main-content-container")
|
||||
"right-sidebar-open")
|
||||
(dom/remove-class! sidebar "enter")))
|
||||
(dom/remove-class! sidebar "enter")
|
||||
(dom/remove-class! (dom/by-id "main") "overflow-hidden")
|
||||
(dom/add-class! (dom/by-id "main") "overflow-y-auto")))
|
||||
|
||||
(defn show-right-sidebar
|
||||
[]
|
||||
(let [sidebar (dom/by-id "right-sidebar")]
|
||||
(dom/add-class! (dom/by-id "main") "overflow-hidden")
|
||||
(dom/add-class! sidebar "enter")
|
||||
(dom/add-class! (dom/by-id "main-content-container")
|
||||
"right-sidebar-open")))
|
||||
|
|
Loading…
Reference in New Issue