mirror of
https://github.com/penpot/penpot.git
synced 2025-01-11 09:20:26 -05:00
🐛 Fix bad texts in layers filter pills
This commit is contained in:
parent
82185794a8
commit
fe6e62482a
1 changed files with 11 additions and 2 deletions
|
@ -434,8 +434,17 @@
|
||||||
|
|
||||||
[:div.active-filters
|
[:div.active-filters
|
||||||
(for [f (:active-filters @filter-state)]
|
(for [f (:active-filters @filter-state)]
|
||||||
[:span {:on-click (remove-filter f)}
|
(let [name (case f
|
||||||
(tr f) i/cross])]
|
:frame (tr "workspace.sidebar.layers.frames")
|
||||||
|
:group (tr "workspace.sidebar.layers.groups")
|
||||||
|
:mask (tr "workspace.sidebar.layers.masks")
|
||||||
|
:component (tr "workspace.sidebar.layers.components")
|
||||||
|
:text (tr "workspace.sidebar.layers.texts")
|
||||||
|
:image (tr "workspace.sidebar.layers.images")
|
||||||
|
:shape (tr "workspace.sidebar.layers.shapes")
|
||||||
|
(tr f))]
|
||||||
|
[:span {:on-click (remove-filter f)}
|
||||||
|
name i/cross]))]
|
||||||
|
|
||||||
(when (:show-filters-menu @filter-state)
|
(when (:show-filters-menu @filter-state)
|
||||||
[:div.filters-container
|
[:div.filters-container
|
||||||
|
|
Loading…
Reference in a new issue