From 77a47e4b2b4a5eb016aa860e9fd531b59c4dbe8a Mon Sep 17 00:00:00 2001 From: Xavier Julian Date: Tue, 8 Jul 2025 15:09:50 +0200 Subject: [PATCH] :sparkles: Improve legibility on import token notification details --- frontend/src/app/main/data/workspace/tokens/import_export.cljs | 2 +- .../app/main/ui/ds/notifications/shared/notification_pill.cljs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/tokens/import_export.cljs b/frontend/src/app/main/data/workspace/tokens/import_export.cljs index 13fd1c5ad4..da935149d4 100644 --- a/frontend/src/app/main/data/workspace/tokens/import_export.cljs +++ b/frontend/src/app/main/data/workspace/tokens/import_export.cljs @@ -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 "
")) :type :toast :level :info}))) diff --git a/frontend/src/app/main/ui/ds/notifications/shared/notification_pill.cljs b/frontend/src/app/main/ui/ds/notifications/shared/notification_pill.cljs index 1e47a2d417..919cc854d3 100644 --- a/frontend/src/app/main/ui/ds/notifications/shared/notification_pill.cljs +++ b/frontend/src/app/main/ui/ds/notifications/shared/notification_pill.cljs @@ -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}}])])]))