♻️ Fix small errors (#11897)

* ♻️ Remove blank space on token sets

* ♻️ Disabled button instead of hidding it

* ♻️ Update typography
This commit is contained in:
Eva Marco 2026-09-24 13:45:17 +02:00 committed by GitHub
parent 32d6ee195e
commit 62153dcb0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 15 additions and 5 deletions

View File

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

View File

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

View File

@ -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);
}

View File

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

View File

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