Color closed notifications, too
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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" },
|
||||
&)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user