0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 12:59:12 -05:00

🐛 Fix missing empty message on swap panel

This commit is contained in:
Pablo Alba 2023-11-28 22:06:29 +01:00
parent d30dc6b34b
commit ac6258043e
4 changed files with 17 additions and 2 deletions

View file

@ -360,6 +360,10 @@
[:span i/arrow-slide] [:span i/arrow-slide]
[:span (:path filters)]]) [:span (:path filters)]])
(when (empty? items)
[:div {:class (stl/css :component-list-empty)}
(tr "workspace.options.component.swap.empty")])
(when (:listing-thumbs? filters) (when (:listing-thumbs? filters)
[:div {:class (stl/css :component-list)} [:div {:class (stl/css :component-list)}
(for [item groups] (for [item groups]

View file

@ -216,6 +216,11 @@
height: $s-16; height: $s-16;
} }
.component-list-empty {
@include titleTipography;
margin: 0 $s-4 0 $s-8;
}
.component-list { .component-list {
margin: 0 $s-4 0 $s-8; margin: 0 $s-4 0 $s-8;
.component-item { .component-item {

View file

@ -3641,9 +3641,12 @@ msgstr "Edit an annotation"
msgid "workspace.options.component.main" msgid "workspace.options.component.main"
msgstr "Main" msgstr "Main"
msgid "workspace.options.component.swap" msgid "workspace.options.component.swap"
msgstr "Swap component" msgstr "Swap component"
msgid "workspace.options.component.swap.empty"
msgstr "There are no assets in this library yet"
#: src/app/main/ui/workspace/sidebar/options/menus/measures.cljs #: src/app/main/ui/workspace/sidebar/options/menus/measures.cljs
msgid "workspace.options.constraints" msgid "workspace.options.constraints"
msgstr "Constraints" msgstr "Constraints"

View file

@ -3706,9 +3706,12 @@ msgstr "Editar una nota"
msgid "workspace.options.component.main" msgid "workspace.options.component.main"
msgstr "Principal" msgstr "Principal"
msgid "workspace.options.component.swap" msgid "workspace.options.component.swap"
msgstr "Intercambiar componente" msgstr "Intercambiar componente"
msgid "workspace.options.component.swap.empty"
msgstr "Aún no hay recursos en esta biblioteca"
#: src/app/main/ui/workspace/sidebar/options/menus/measures.cljs #: src/app/main/ui/workspace/sidebar/options/menus/measures.cljs
msgid "workspace.options.constraints" msgid "workspace.options.constraints"
msgstr "Restricciones" msgstr "Restricciones"