mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
✨ Improve legibility on import token notification details
This commit is contained in:
parent
88bb9bfe52
commit
77a47e4b2b
@ -47,7 +47,7 @@
|
|||||||
(ntf/show {:content (tr "workspace.tokens.unknown-token-type-message")
|
(ntf/show {:content (tr "workspace.tokens.unknown-token-type-message")
|
||||||
:detail (->> (for [[token-type tokens] type->tokens]
|
:detail (->> (for [[token-type tokens] type->tokens]
|
||||||
(tr "workspace.tokens.unknown-token-type-section" token-type (count tokens)))
|
(tr "workspace.tokens.unknown-token-type-section" token-type (count tokens)))
|
||||||
(str/join "\n"))
|
(str/join "<br>"))
|
||||||
:type :toast
|
:type :toast
|
||||||
:level :info})))
|
:level :info})))
|
||||||
|
|
||||||
|
|||||||
@ -71,4 +71,5 @@
|
|||||||
[:div {:on-click on-toggle-detail}
|
[:div {:on-click on-toggle-detail}
|
||||||
(tr "workspace.notification-pill.detail")]]
|
(tr "workspace.notification-pill.detail")]]
|
||||||
(when show-detail
|
(when show-detail
|
||||||
[:div {:class (stl/css :error-detail-content)} detail])])]))
|
[:div {:class (stl/css :error-detail-content)
|
||||||
|
:dangerouslySetInnerHTML #js {:__html detail}}])])]))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user