🐛 Fix little things

This commit is contained in:
Eva Marco 2026-07-29 10:54:10 +02:00
parent ea65ae8e42
commit 42a2510be6
3 changed files with 4 additions and 8 deletions

View File

@ -21,7 +21,7 @@
inline-size: 100%;
z-index: var(--z-index-set);
background-color: var(--overlay-color);
padding-inline-start: px2rem(300);
padding-inline-start: px2rem(272);
}
.modal-dialog {

View File

@ -21,7 +21,7 @@
inline-size: 100%;
z-index: var(--z-index-set);
background-color: var(--overlay-color);
padding-inline-start: px2rem(300);
padding-inline-start: px2rem(272);
}
.modal-dialog {

View File

@ -189,9 +189,6 @@
all-shortcuts (into {} (filter (fn [[_ v]] (section-has-content? v)) all-shortcuts))
filtered-shortcuts (filter-shortcuts-tree all-shortcuts shortcut-filter filter-term)
expanded?* (mf/use-state false)
expanded? (deref expanded?*)
expand-all-sections
(fn []
(let [all-ids (collect-open-section-ids filtered-shortcuts)]
@ -236,11 +233,10 @@
empty-str)]
(mf/with-effect [filtered-shortcuts filter-term expand-all-by-default]
(when (and expand-all-by-default (str/blank? filter-term) (not expanded?))
(when (and expand-all-by-default (str/blank? filter-term))
(let [all-ids (collect-open-section-ids filtered-shortcuts)]
(when (seq all-ids)
(update-open-sections (vec all-ids))
(reset! expanded?* true)))))
(update-open-sections (vec all-ids))))))
[:div {:class (stl/css :shortcuts-section)}
[:> search-section* {:filter-term filter-term