mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 17:00:36 -05:00
More consistent sitemap button behavior
This commit is contained in:
parent
dfe5765d50
commit
4f55b3995f
3 changed files with 10 additions and 2 deletions
|
@ -53,6 +53,7 @@
|
|||
align-items: center;
|
||||
background-color: $secondary-ui-bg;
|
||||
border-radius: $br-small;
|
||||
border: 1px solid transparent;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
padding: $x-small $x-small $x-small $medium;
|
||||
|
@ -73,6 +74,11 @@
|
|||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $color-white;
|
||||
border-color: $soft-ui-border;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background-color: $main-ui-color;
|
||||
|
||||
svg {
|
||||
|
@ -84,7 +90,6 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.workspace-options {
|
||||
|
|
|
@ -81,7 +81,9 @@
|
|||
[:div.main-icon
|
||||
(nav/link (r/route-for :dashboard/projects) i/logo-icon)]
|
||||
[:div.project-tree-btn
|
||||
{:on-click (partial toggle :sitemap)}
|
||||
{:alt "Sitemap (Ctrl + Shift + M)"
|
||||
:class (when (contains? flags :sitemap) "selected")
|
||||
:on-click (partial toggle :sitemap)}
|
||||
i/project-tree
|
||||
[:span (:name page)]]
|
||||
[:div.workspace-options
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
(defonce ^:const +shortcuts+
|
||||
{:ctrl+g #(rs/emit! (dw/toggle-flag :grid))
|
||||
:ctrl+shift+m #(rs/emit! (dw/toggle-flag :sitemap))
|
||||
:ctrl+shift+f #(rs/emit! (dw/toggle-flag :drawtools))
|
||||
:ctrl+shift+i #(rs/emit! (dw/toggle-flag :icons))
|
||||
:ctrl+shift+l #(rs/emit! (dw/toggle-flag :layers))
|
||||
|
|
Loading…
Reference in a new issue