mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 05:08:08 +00:00
✨ Filter variant by name on layers panel
This commit is contained in:
parent
6eb686c06b
commit
f932f3efb1
@ -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*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user