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

View File

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

View File

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