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