mirror of
https://github.com/penpot/penpot.git
synced 2026-09-26 05:46:13 +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)}
|
||||
[:> icon* {:icon-id i/document
|
||||
:class (stl/css :library-resolution-file-icon)
|
||||
:size "s"}]
|
||||
:size "m"}]
|
||||
[:> text* {:class (stl/css :library-resolution-file-name)
|
||||
:as "span"
|
||||
:typography t/body-medium}
|
||||
:typography t/body-large}
|
||||
(:name unresolved-file)]]
|
||||
|
||||
[:> text* {:class (stl/css :library-resolution-message)
|
||||
|
||||
@ -520,11 +520,14 @@
|
||||
:on-click toggle-token-dropdown
|
||||
:tooltip-placement "top-left"
|
||||
: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"
|
||||
: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
|
||||
:tooltip-placement "top-left"
|
||||
:disabled (not font)
|
||||
:icon i/add}])]]
|
||||
(when (and token-typography-row-enabled? token-dropdown-open?)
|
||||
[:> searchable-options-dropdown* {:on-click on-option-click
|
||||
|
||||
@ -43,7 +43,6 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-inline-start: var(--sp-m);
|
||||
padding-block-start: var(--sp-m);
|
||||
color: var(--layer-row-foreground-color);
|
||||
}
|
||||
|
||||
|
||||
@ -8281,6 +8281,10 @@ msgstr "Flow starts"
|
||||
msgid "workspace.options.flows.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
|
||||
msgid "workspace.options.grid.auto"
|
||||
msgstr "Auto"
|
||||
|
||||
@ -8067,6 +8067,10 @@ msgstr "Inicios de flujo"
|
||||
msgid "workspace.options.flows.remove-flow"
|
||||
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
|
||||
msgid "workspace.options.grid.auto"
|
||||
msgstr "Automático"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user