mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:31:57 +08: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> {
|
||||
constructor() {
|
||||
super({}, 1, 10);
|
||||
super({}, 1, 20);
|
||||
}
|
||||
|
||||
get type(): string {
|
||||
|
@ -3,7 +3,7 @@
|
||||
padding: 0;
|
||||
|
||||
.NotificationList-content {
|
||||
max-height: 70vh;
|
||||
max-height: ~"min(70vh, 800px)";
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
@ -33,11 +33,6 @@ class ListNotificationsController extends AbstractListController
|
||||
'subject.discussion'
|
||||
];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public $limit = 10;
|
||||
|
||||
/**
|
||||
* @var NotificationRepository
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user