0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-09 21:41:23 -05:00

Filter variant by name on layers panel

This commit is contained in:
luisδμ 2025-03-25 21:50:29 +01:00 committed by GitHub
parent 6eb686c06b
commit f932f3efb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,6 +145,7 @@
(conj :rect :circle :path :bool))]
(or (= uuid/zero id)
(and (or (str/includes? (str/lower (:name shape)) (str/lower search))
(str/includes? (str/lower (:variant-name shape)) (str/lower search))
;; Only for local development we allow search for ids. Otherwise will be hard
;; search for numbers or single letter shape names (ie: "A")
(and *assert*