enhance(mobile): set a max-width for mobile left-sidebar

This commit is contained in:
leizhe
2021-11-26 15:20:42 +08:00
parent 11228c29e3
commit 3abdbf9c59
2 changed files with 4 additions and 3 deletions

View File

@@ -299,8 +299,7 @@
{:class (if @open?
"translate-x-0"
"-translate-x-full")
:style {:max-width "80vw"
:padding-top (ui/main-content-top-padding)}}
:style {:padding-top (ui/main-content-top-padding)}}
(when @open?
[:div.cp__header#head
[:div.l.flex

View File

@@ -64,7 +64,9 @@ html.is-mobile {
#left-bar {
background-color: var(--ls-primary-background-color);
width: 80vw;
max-width: 250px;
> .head-wrap {
background-color: var(--ls-search-background-color);
}