fix(filemanager): check minimum page size before sync view setting

This commit is contained in:
Darren Yu 2025-09-04 10:20:43 +08:00
parent e53eb86a32
commit f14c2427f7
No known key found for this signature in database
GPG Key ID: 2D69AA5646405984

View File

@ -749,7 +749,7 @@ export function syncViewSettings(
(parent?.owned || crUri.fs() == Filesystem.trash || crUri.fs() == Filesystem.shared_with_me);
const currentView: ExplorerView = {
page_size: pageSize(fm),
page_size: Math.max(MinPageSize, pageSize(fm)),
order: fm.sortBy ?? "created_at",
order_direction: fm.sortDirection ?? "asc",
view: fm.layout ?? Layouts.grid,