follow-ups to 1972364: increase notification limit, make show-all a link

This commit is contained in:
Kris 2020-08-12 17:14:48 -04:00
parent c25dc43f54
commit 9bc992dce4
3 changed files with 7 additions and 5 deletions

View File

@ -46,7 +46,8 @@ createWidgetFrom(QuickAccessPanel, "quick-access-notifications", {
"notification", "notification",
{ {
recent: true, recent: true,
silent: this.currentUser.enforcedSecondFactor silent: this.currentUser.enforcedSecondFactor,
limit: 30
}, },
{ cacheKey: "recent-notifications" } { cacheKey: "recent-notifications" }
); );

View File

@ -102,11 +102,12 @@ export default createWidget("quick-access-panel", {
if (!this.hideBottomItems()) { if (!this.hideBottomItems()) {
bottomItems.push( bottomItems.push(
this.attach("button", { // intentionally a link so it can be ctrl clicked
this.attach("link", {
title: "view_all", title: "view_all",
icon: "chevron-down", icon: "chevron-down",
className: "show-all", className: "btn btn-default btn-icon no-text show-all",
url: this.showAllHref() href: this.showAllHref()
}) })
); );
} }

View File

@ -75,7 +75,7 @@
margin-left: 0.5em; margin-left: 0.5em;
} }
button { .btn {
background-color: var(--primary-very-low); background-color: var(--primary-very-low);
color: var(--primary-high); color: var(--primary-high);
&:hover { &:hover {