mirror of
https://github.com/penpot/penpot.git
synced 2026-07-31 02:16:13 +00:00
WIP 3
This commit is contained in:
parent
f891f4237d
commit
ab266ba807
@ -137,12 +137,12 @@
|
||||
|
||||
tabs
|
||||
(mf/with-memo []
|
||||
[{:label "All shortcuts"
|
||||
[{:label "All"
|
||||
:id "all"}
|
||||
{:label "Personalized shortcuts"
|
||||
{:label "Personalized"
|
||||
:data-testid "personalized"
|
||||
:id "personalized"}
|
||||
{:label "Not assigned shortcuts"
|
||||
{:label "Not assigned"
|
||||
:data-testid "not-assigned"
|
||||
:id "not-assigned"}])
|
||||
|
||||
@ -167,7 +167,7 @@
|
||||
[:> tab-switcher* {:tabs tabs
|
||||
:selected (name section)
|
||||
:on-change handle-change-tab
|
||||
:class (stl/css :viewer-tab-switcher)}
|
||||
:class (stl/css :shortcuts-switcher)}
|
||||
(case section
|
||||
:all
|
||||
[:> all-shortcuts-section* {:profile profile}]
|
||||
|
||||
@ -6,10 +6,16 @@
|
||||
|
||||
.shortcuts-page {
|
||||
height: 100%;
|
||||
max-width: 31.25rem;
|
||||
width: 36.25rem;
|
||||
margin: 5rem auto 7.5rem;
|
||||
}
|
||||
|
||||
.shortcuts-content {
|
||||
padding: var(--sp-xl);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.shortcuts-section {
|
||||
|
||||
@ -160,8 +160,7 @@
|
||||
(if match-any?
|
||||
[:div {:class (stl/css :shortcuts-list)}
|
||||
(for [section all-shortcuts]
|
||||
(let [[section-key _] section
|
||||
ws-editable? (contains? #{:basics :workspace} section-key)]
|
||||
(let [[section-key _] section]
|
||||
[:> ss/shortcut-section* {:key (name section-key)
|
||||
:section section
|
||||
:manage-sections manage-sections
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user