fix: several issues related to graph

fixed position: sticky not working on safari
This commit is contained in:
Tienson Qin
2021-04-18 10:54:37 +08:00
parent 8f6505d04b
commit dcf37edc10
8 changed files with 48 additions and 26 deletions

View File

@@ -117,6 +117,7 @@
(when (state/sub :ui/left-sidebar-open?)
(sidebar-nav route-match nil))]
[:div#main-content-container.w-full.flex.justify-center
{:margin-top (if global-graph-pages? 0 "2rem")}
[:div.cp__sidebar-main-content
{:data-is-global-graph-pages global-graph-pages?
:data-is-full-width (or global-graph-pages?
@@ -334,7 +335,8 @@
:route-match route-match})
[:div.#app-container.h-screen.flex
[:div.flex-1.h-full.flex.flex-col.overflow-y-auto#left-container.relative
[(header/header {:open-fn open-fn
[:div
(header/header {:open-fn open-fn
:white? white?
:current-repo current-repo
:logged? logged?
@@ -344,7 +346,6 @@
:default-home default-home
:new-block-mode new-block-mode})
(main {:route-match route-match
:global-graph-pages? global-graph-pages?
:logged? logged?
@@ -356,7 +357,6 @@
:main-content main-content})]]
(right-sidebar/sidebar)]
(ui/notification)
(ui/modal)
(settings-modal settings-open?)