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:
parent
ecfbcd1c30
commit
1b5da13e8a
@ -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 {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
.NotificationList-content {
|
.NotificationList-content {
|
||||||
max-height: 70vh;
|
max-height: ~"min(70vh, 800px)";
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,11 +33,6 @@ class ListNotificationsController extends AbstractListController
|
|||||||
'subject.discussion'
|
'subject.discussion'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public $limit = 10;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var NotificationRepository
|
* @var NotificationRepository
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user