This commit is contained in:
Eva Marco 2026-06-16 17:32:23 +02:00
parent f891f4237d
commit ab266ba807
3 changed files with 11 additions and 6 deletions

View File

@ -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}]

View File

@ -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 {

View File

@ -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