1
0
mirror of https://github.com/flarum/core.git synced 2025-06-07 07:06:10 +02:00

fix: infinite scroll not initialized for notifications on big screens (#3733)

This commit is contained in:
Robert Korulczyk 2023-04-17 10:07:00 +02:00 committed by GitHub
parent ecfbcd1c30
commit 1b5da13e8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import Notification from '../../common/models/Notification';
export default class NotificationListState extends PaginatedListState<Notification> { export default class NotificationListState extends PaginatedListState<Notification> {
constructor() { constructor() {
super({}, 1, 10); super({}, 1, 20);
} }
get type(): string { get type(): string {

View File

@ -3,7 +3,7 @@
padding: 0; padding: 0;
.NotificationList-content { .NotificationList-content {
max-height: 70vh; max-height: ~"min(70vh, 800px)";
overflow: auto; overflow: auto;
} }
} }

View File

@ -33,11 +33,6 @@ class ListNotificationsController extends AbstractListController
'subject.discussion' 'subject.discussion'
]; ];
/**
* {@inheritdoc}
*/
public $limit = 10;
/** /**
* @var NotificationRepository * @var NotificationRepository
*/ */