0
Fork 0
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:
Pablo Alba 2022-05-04 18:00:44 +02:00 committed by Alonso Torres
parent 82185794a8
commit fe6e62482a

View file

@ -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