🐛 Fix small details on number token application (#7051)

This commit is contained in:
Eva Marco
2025-08-01 13:52:09 +02:00
committed by GitHub
parent 50076bac83
commit fe53869308
5 changed files with 13 additions and 2 deletions

View File

@@ -55,6 +55,7 @@
- Fix tooltip position after first time [Taiga #11688](https://tree.taiga.io/project/penpot/issue/11688)
- Fix export button width on inspect tab [Taiga #11394](https://tree.taiga.io/project/penpot/issue/11394)
- Fix stroke width token application [Taiga #11724](https://tree.taiga.io/project/penpot/issue/11724)
- Fix number token application on shape [Taiga #11331](https://tree.taiga.io/project/penpot/task/11331)
## 2.8.1

View File

@@ -91,7 +91,7 @@
(mf/deps selected-shapes not-editing?)
(fn [event token]
(dom/stop-propagation event)
(when (and not-editing? (seq selected-shapes))
(when (and not-editing? (seq selected-shapes) (not= (:type token) :number))
(st/emit! (dwta/toggle-token {:token token
:shapes selected-shapes})))))]

View File

@@ -124,7 +124,9 @@
base-title (dm/str "Token: " name "\n"
(tr "workspace.tokens.original-value" value) "\n"
(tr "workspace.tokens.resolved-value" resolved-value))]
(tr "workspace.tokens.resolved-value" resolved-value)
(when (= (:type token) :number)
(dm/str "\n" (tr "workspace.tokens.more-options"))))]
(cond
;; If there are errors, show the appropriate message

View File

@@ -7546,6 +7546,10 @@ msgstr "Type '%s' is not supported (%s)\n"
msgid "workspace.tokens.value-not-valid"
msgstr "The value is not valid"
#: src/app/main/ui/workspace/tokens/token_pill.cljs
msgid "workspace.tokens.more-options"
msgstr "Right click to see options"
#: src/app/main/data/workspace/tokens/errors.cljs:61
msgid "workspace.tokens.value-with-units"
msgstr "Invalid value: Units are not allowed."

View File

@@ -7483,6 +7483,10 @@ msgstr "El tipo '%s' no está soportado (%s)\n"
msgid "workspace.tokens.value-not-valid"
msgstr "El valor no es válido"
#: src/app/main/ui/workspace/tokens/token_pill.cljs
msgid "workspace.tokens.more-options"
msgstr "Click derecho para ver opciones"
#: src/app/main/data/workspace/tokens/errors.cljs:61
msgid "workspace.tokens.value-with-units"
msgstr "Valor no válido: No se permiten unidades."