Add no-notifications indicator when list empty

pull/1/head
ClemDee 6 years ago
parent 0f372b2ed5
commit 19a3524ab5

@ -77,8 +77,17 @@
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
background-color: #ffffff; background-color: #ffffff;
&:not(:last-child) { &.no-notifications {
border-bottom: 1px solid #ccc; display: none;
padding: 1rem 1rem;
font-style: italic;
color: #777;
&:only-child {
display: block;
}
}
&:not(:first-child) {
border-top: 1px solid #ccc;
} }
.cp-notification-content { .cp-notification-content {

@ -65,7 +65,9 @@ define([
dismissAll = h("div.cp-app-notifications-dismissall.cp-clickable", { title: Messages.dismissAll || "Dismiss All" }, h("span.fa.fa-trash")), dismissAll = h("div.cp-app-notifications-dismissall.cp-clickable", { title: Messages.dismissAll || "Dismiss All" }, h("span.fa.fa-trash")),
]), ]),
]), ]),
notifsList = h("div.cp-app-notifications-panel-list"), notifsList = h("div.cp-app-notifications-panel-list", [
h("div.cp-notification.no-notifications", Messages.notifications_empty),
]),
]); ]);
$div.append(notifsPanel); $div.append(notifsPanel);

Loading…
Cancel
Save