mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 01:16:18 +02:00
🐛 Allow lowercase search for fonts
This commit is contained in:
parent
54e7e44df1
commit
1f5e974cfc
4 changed files with 10 additions and 2 deletions
|
@ -74,7 +74,8 @@
|
|||
|
||||
(defn filter-fonts
|
||||
[{:keys [term backends]} fonts]
|
||||
(let [xform (cond-> (map identity)
|
||||
(let [term (str/lower term)
|
||||
xform (cond-> (map identity)
|
||||
(seq term)
|
||||
(comp (filter #(str/includes? (str/lower (:name %)) term)))
|
||||
|
||||
|
@ -175,7 +176,7 @@
|
|||
[:div.font-selector
|
||||
[:div.font-selector-dropdown
|
||||
[:header
|
||||
[:input {:placeholder "Search font"
|
||||
[:input {:placeholder (tr "workspace.options.search-font")
|
||||
:value (:term @state)
|
||||
:ref input
|
||||
:spell-check false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue