mirror of
https://github.com/penpot/penpot.git
synced 2026-09-29 15:26:19 +00:00
♻️ Fix small errors (#11897)
* ♻️ Remove blank space on token sets * ♻️ Disabled button instead of hidding it * ♻️ Update typography
This commit is contained in:
parent
32d6ee195e
commit
62153dcb0b
@ -427,10 +427,10 @@
|
|||||||
[:div {:class (stl/css :library-resolution-file-header)}
|
[:div {:class (stl/css :library-resolution-file-header)}
|
||||||
[:> icon* {:icon-id i/document
|
[:> icon* {:icon-id i/document
|
||||||
:class (stl/css :library-resolution-file-icon)
|
:class (stl/css :library-resolution-file-icon)
|
||||||
:size "s"}]
|
:size "m"}]
|
||||||
[:> text* {:class (stl/css :library-resolution-file-name)
|
[:> text* {:class (stl/css :library-resolution-file-name)
|
||||||
:as "span"
|
:as "span"
|
||||||
:typography t/body-medium}
|
:typography t/body-large}
|
||||||
(:name unresolved-file)]]
|
(:name unresolved-file)]]
|
||||||
|
|
||||||
[:> text* {:class (stl/css :library-resolution-message)
|
[:> text* {:class (stl/css :library-resolution-message)
|
||||||
|
|||||||
@ -520,11 +520,14 @@
|
|||||||
:on-click toggle-token-dropdown
|
:on-click toggle-token-dropdown
|
||||||
:tooltip-placement "top-left"
|
:tooltip-placement "top-left"
|
||||||
:icon i/tokens}])
|
:icon i/tokens}])
|
||||||
(when (and (some? font) (not typography) (not multiple?) (not applied-token-name))
|
(when (and (not typography) (not multiple?) (not applied-token-name))
|
||||||
[:> icon-button* {:variant "ghost"
|
[:> icon-button* {:variant "ghost"
|
||||||
:aria-label (tr "workspace.options.convert-to-typography")
|
:aria-label (if (not font)
|
||||||
|
(tr "workspace.options.font-not-available" (:font-family values))
|
||||||
|
(tr "workspace.options.convert-to-typography"))
|
||||||
:on-click on-convert-to-typography
|
:on-click on-convert-to-typography
|
||||||
:tooltip-placement "top-left"
|
:tooltip-placement "top-left"
|
||||||
|
:disabled (not font)
|
||||||
:icon i/add}])]]
|
:icon i/add}])]]
|
||||||
(when (and token-typography-row-enabled? token-dropdown-open?)
|
(when (and token-typography-row-enabled? token-dropdown-open?)
|
||||||
[:> searchable-options-dropdown* {:on-click on-option-click
|
[:> searchable-options-dropdown* {:on-click on-option-click
|
||||||
|
|||||||
@ -43,7 +43,6 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-inline-start: var(--sp-m);
|
margin-inline-start: var(--sp-m);
|
||||||
padding-block-start: var(--sp-m);
|
|
||||||
color: var(--layer-row-foreground-color);
|
color: var(--layer-row-foreground-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8281,6 +8281,10 @@ msgstr "Flow starts"
|
|||||||
msgid "workspace.options.flows.remove-flow"
|
msgid "workspace.options.flows.remove-flow"
|
||||||
msgstr "Remove flow"
|
msgstr "Remove flow"
|
||||||
|
|
||||||
|
#: src/app/main/ui/workspace/sidebar/options/menus/text.cljs:526
|
||||||
|
msgid "workspace.options.font-not-available"
|
||||||
|
msgstr "The font used by this text (%s) is no longer available. Reupload the font to create a typography style"
|
||||||
|
|
||||||
#: src/app/main/ui/workspace/sidebar/options/menus/frame_grid.cljs:34
|
#: src/app/main/ui/workspace/sidebar/options/menus/frame_grid.cljs:34
|
||||||
msgid "workspace.options.grid.auto"
|
msgid "workspace.options.grid.auto"
|
||||||
msgstr "Auto"
|
msgstr "Auto"
|
||||||
|
|||||||
@ -8067,6 +8067,10 @@ msgstr "Inicios de flujo"
|
|||||||
msgid "workspace.options.flows.remove-flow"
|
msgid "workspace.options.flows.remove-flow"
|
||||||
msgstr "Eliminar flujo"
|
msgstr "Eliminar flujo"
|
||||||
|
|
||||||
|
#: src/app/main/ui/workspace/sidebar/options/menus/text.cljs:526
|
||||||
|
msgid "workspace.options.font-not-available"
|
||||||
|
msgstr "La fuente utilizada por este texto (%s) ya no está disponible. Vuelve a subir la fuente para crear un estilo de tipografía"
|
||||||
|
|
||||||
#: src/app/main/ui/workspace/sidebar/options/menus/frame_grid.cljs:34
|
#: src/app/main/ui/workspace/sidebar/options/menus/frame_grid.cljs:34
|
||||||
msgid "workspace.options.grid.auto"
|
msgid "workspace.options.grid.auto"
|
||||||
msgstr "Automático"
|
msgstr "Automático"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user