Improve legibility on import token notification details

This commit is contained in:
Xavier Julian
2025-07-08 15:09:50 +02:00
parent 88bb9bfe52
commit 77a47e4b2b
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,7 @@
(ntf/show {:content (tr "workspace.tokens.unknown-token-type-message")
:detail (->> (for [[token-type tokens] type->tokens]
(tr "workspace.tokens.unknown-token-type-section" token-type (count tokens)))
(str/join "\n"))
(str/join "<br>"))
:type :toast
:level :info})))

View File

@@ -71,4 +71,5 @@
[:div {:on-click on-toggle-detail}
(tr "workspace.notification-pill.detail")]]
(when show-detail
[:div {:class (stl/css :error-detail-content)} detail])])]))
[:div {:class (stl/css :error-detail-content)
:dangerouslySetInnerHTML #js {:__html detail}}])])]))