Allow scroll

pull/645/head
Tienson Qin 2020-05-22 13:02:23 +08:00
parent 2e687e2f8b
commit c03456374a
2 changed files with 6 additions and 7 deletions

View File

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

View File

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