Update notification menu (#1673)

This commit is contained in:
Rave | 図書館猫 2022-06-11 20:56:43 +02:00 committed by GitHub
parent 2432cf2fe1
commit 50fb15c7f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -44,7 +44,7 @@ export default function NotificationHeaderButton(props: Props) {
deleteNotification,
doSeeAllNotifications,
} = props;
const list = notifications.slice(0, 5);
const list = notifications.slice(0, 20);
const { push } = useHistory();
const notificationsEnabled = authenticated && (ENABLE_UI_NOTIFICATIONS || (user && user.experimental_ui));

View file

@ -195,7 +195,6 @@ reach-portal {
.MuiMenu-list {
padding: 0;
backdrop-filter: blur(4px) !important;
background-color: unset !important;
}
.MuiMenu-list--paper {
@ -216,7 +215,8 @@ reach-portal {
}
.menu__list--notifications-list {
overflow: hidden !important;
overflow-y: scroll;
height: 388px;
.menu__list--notification {
position: relative;
overflow: hidden !important;
@ -281,6 +281,10 @@ reach-portal {
}
}
.comment__badge {
display: none;
}
span {
margin-right: 0;
.credit-amount {
@ -399,6 +403,10 @@ reach-portal {
}
}
}
&::-webkit-scrollbar-track {
background: rgba(var(--color-header-background-base), 0.8);
}
}
.menu__list--notifications-more {