Color closed notifications, too

This commit is contained in:
Jason Zimdars
2025-05-21 13:58:02 -05:00
parent 298b856cd0
commit 92b4746edb
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -334,6 +334,10 @@
background-color: var(--color-canvas);
&.card--closed {
--card-color: var(--color-card-complete);
}
.card__collection {
font-size: var(--text-xx-small);
padding-block: 0.5ch;
+1 -1
View File
@@ -22,7 +22,7 @@ module NotificationsHelper
tag.div id: dom_id(notification), class: "tray__item" do
concat(
link_to(notification,
class: "card card--notification",
class: [ "card card--notification", { "card--closed": notification.notifiable_target.closed? } ],
data: { action: "click->dialog#close", turbo_frame: "_top" },
&)
)