mirror of
https://github.com/penpot/penpot.git
synced 2026-08-10 23:08:41 +00:00
🐛 Fix little things
This commit is contained in:
parent
ea65ae8e42
commit
42a2510be6
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user