mirror of
https://github.com/penpot/penpot.git
synced 2025-06-29 18:07:02 +02:00
🐛 Recover lost wrap icon
This commit is contained in:
parent
c865a1bdfd
commit
37859a20a6
3 changed files with 9 additions and 20 deletions
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 253 B |
|
@ -61,8 +61,7 @@
|
||||||
|
|
||||||
.cursor-item div,
|
.cursor-item div,
|
||||||
.icon-item-old svg {
|
.icon-item-old svg {
|
||||||
fill: #aab5ba;
|
stroke: #aab5ba;
|
||||||
stroke: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cursor-item {
|
.cursor-item {
|
||||||
|
|
|
@ -284,24 +284,14 @@
|
||||||
{::mf/wrap-props false}
|
{::mf/wrap-props false}
|
||||||
[]
|
[]
|
||||||
(let [entries (->> (seq (js/Object.entries default))
|
(let [entries (->> (seq (js/Object.entries default))
|
||||||
(sort-by first))
|
(sort-by first))]
|
||||||
refactor? (fn [[key]] (str/ends-with? key "Refactor"))]
|
|
||||||
[:*
|
|
||||||
[:section.debug-icons-preview
|
[:section.debug-icons-preview
|
||||||
[:h2.subtitle-old "Classic (Deprecated)"]
|
[:h2 "icons"]
|
||||||
(for [[key val] (remove refactor? entries)]
|
(for [[key val] entries]
|
||||||
[:div.icon-item-old {:key key
|
[:div.icon-item-old {:key key
|
||||||
:title key}
|
:title key}
|
||||||
val
|
val
|
||||||
[:span key]])]
|
[:span key]])]))
|
||||||
|
|
||||||
[:section.debug-icons-preview
|
|
||||||
[:h2 "Refactor"]
|
|
||||||
(for [[key val] (filter refactor? entries)]
|
|
||||||
[:div.icon-item {:key key
|
|
||||||
:title key}
|
|
||||||
val
|
|
||||||
[:span key]])]]))
|
|
||||||
|
|
||||||
(defn key->icon
|
(defn key->icon
|
||||||
[icon-key]
|
[icon-key]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue