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:
parent
6eb686c06b
commit
f932f3efb1
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue