Skip to content

Commit

Permalink
fix: display the main menu dots on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Feb 9, 2021
1 parent 6485b09 commit a7c41eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/main/frontend/components/header.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@
{:on-click toggle-fn}
(svg/horizontal-dots nil)])
(->>
[{:title (t :help/toggle-right-sidebar)
:options {:on-click state/toggle-sidebar-open?!}}
[(when-not (util/mobile?)
{:title (t :help/toggle-right-sidebar)
:options {:on-click state/toggle-sidebar-open?!}})

(when current-repo
{:title (t :graph)
Expand Down
13 changes: 8 additions & 5 deletions src/main/frontend/components/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@
.cp__header-logo,
.cp__right-menu-button {
opacity: 0.7;
display: none;
}

.cp__header-logo {
display: none;
}

.cp__header-logo:hover,
Expand All @@ -64,6 +67,10 @@
@apply ml-3;
}

.cp__right-menu-button {
display: block;
}

@screen sm {
.cp__header {
@apply shadow-none;
Expand All @@ -77,8 +84,4 @@
display: flex;
align-items: center;
}

.cp__right-menu-button {
display: block;
}
}

0 comments on commit a7c41eb

Please sign in to comment.