mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 19:22:18 +02:00
🐛 Fix assets search for typographies
This commit is contained in:
parent
2c23b0e7f4
commit
f45d3f9c65
1 changed files with 2 additions and 2 deletions
|
@ -498,7 +498,7 @@
|
||||||
colors (apply-filters (mf/deref colors-ref) filters)
|
colors (apply-filters (mf/deref colors-ref) filters)
|
||||||
|
|
||||||
typography-ref (mf/use-memo (mf/deps (:id file)) #(file-typography-ref (:id file)))
|
typography-ref (mf/use-memo (mf/deps (:id file)) #(file-typography-ref (:id file)))
|
||||||
typographies (apply-filters (mf/deref typography-ref) filters)
|
typographies (apply-filters (mf/deref typography-ref) filters)
|
||||||
|
|
||||||
media-ref (mf/use-memo (mf/deps (:id file)) #(file-media-ref (:id file)))
|
media-ref (mf/use-memo (mf/deps (:id file)) #(file-media-ref (:id file)))
|
||||||
media (apply-filters (mf/deref media-ref) filters)
|
media (apply-filters (mf/deref media-ref) filters)
|
||||||
|
@ -538,7 +538,7 @@
|
||||||
(str/empty? (:term filters))))
|
(str/empty? (:term filters))))
|
||||||
show-typography? (and (or (= (:box filters) :all)
|
show-typography? (and (or (= (:box filters) :all)
|
||||||
(= (:box filters) :typographies))
|
(= (:box filters) :typographies))
|
||||||
(or (> (count colors) 0)
|
(or (> (count typographies) 0)
|
||||||
(str/empty? (:term filters))))]
|
(str/empty? (:term filters))))]
|
||||||
[:div.tool-window-content
|
[:div.tool-window-content
|
||||||
(when show-components?
|
(when show-components?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue