mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 20:41:37 +02: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))]
|
(conj :rect :circle :path :bool))]
|
||||||
(or (= uuid/zero id)
|
(or (= uuid/zero id)
|
||||||
(and (or (str/includes? (str/lower (:name shape)) (str/lower search))
|
(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
|
;; Only for local development we allow search for ids. Otherwise will be hard
|
||||||
;; search for numbers or single letter shape names (ie: "A")
|
;; search for numbers or single letter shape names (ie: "A")
|
||||||
(and *assert*
|
(and *assert*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue