mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix small details on number token application (#7051)
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
- Fix tooltip position after first time [Taiga #11688](https://tree.taiga.io/project/penpot/issue/11688)
|
- 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 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 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
|
## 2.8.1
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
(mf/deps selected-shapes not-editing?)
|
(mf/deps selected-shapes not-editing?)
|
||||||
(fn [event token]
|
(fn [event token]
|
||||||
(dom/stop-propagation event)
|
(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
|
(st/emit! (dwta/toggle-token {:token token
|
||||||
:shapes selected-shapes})))))]
|
:shapes selected-shapes})))))]
|
||||||
|
|
||||||
|
|||||||
@@ -124,7 +124,9 @@
|
|||||||
|
|
||||||
base-title (dm/str "Token: " name "\n"
|
base-title (dm/str "Token: " name "\n"
|
||||||
(tr "workspace.tokens.original-value" value) "\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
|
(cond
|
||||||
;; If there are errors, show the appropriate message
|
;; If there are errors, show the appropriate message
|
||||||
|
|||||||
@@ -7546,6 +7546,10 @@ msgstr "Type '%s' is not supported (%s)\n"
|
|||||||
msgid "workspace.tokens.value-not-valid"
|
msgid "workspace.tokens.value-not-valid"
|
||||||
msgstr "The value is 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
|
#: src/app/main/data/workspace/tokens/errors.cljs:61
|
||||||
msgid "workspace.tokens.value-with-units"
|
msgid "workspace.tokens.value-with-units"
|
||||||
msgstr "Invalid value: Units are not allowed."
|
msgstr "Invalid value: Units are not allowed."
|
||||||
|
|||||||
@@ -7483,6 +7483,10 @@ msgstr "El tipo '%s' no está soportado (%s)\n"
|
|||||||
msgid "workspace.tokens.value-not-valid"
|
msgid "workspace.tokens.value-not-valid"
|
||||||
msgstr "El valor no es válido"
|
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
|
#: src/app/main/data/workspace/tokens/errors.cljs:61
|
||||||
msgid "workspace.tokens.value-with-units"
|
msgid "workspace.tokens.value-with-units"
|
||||||
msgstr "Valor no válido: No se permiten unidades."
|
msgstr "Valor no válido: No se permiten unidades."
|
||||||
|
|||||||
Reference in New Issue
Block a user