fix(mobile): remove empty spaces in left sidebar below the header

This commit is contained in:
leizhe
2021-11-26 16:27:02 +08:00
parent 3abdbf9c59
commit f4302d2bef

View File

@@ -240,7 +240,6 @@
[".favorites" ".recent" ".dropdown-wrapper" ".nav-header"])
(close-modal-fn)))}
[:div.flex.flex-col.pb-4.wrap
{:style {:padding-top (if (mobile-util/native-iphone?) 10 60)}}
[:nav.px-2.space-y-1 {:aria-label "Sidebar"}
(repo/repos-dropdown)
@@ -312,7 +311,8 @@
[:a.button#search-button-mobile
{:on-click #(state/pub-event! [:go/search])}
(ui/icon "search" {:style {:fontSize ui/icon-size}})])]])
[:div.flex-1.h-0.overflow-y-auto
[:div.flex-1.h-0.overflow-y-auto {:style {:position "relative"
:top "-48px"}}
(sidebar-nav route-match close-fn)]]])
(rum/defc main <