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

This commit is contained in:
Darren Yu 2025-09-05 11:42:00 +08:00 committed by GitHub
parent 3f228f3131
commit 6cc4a931bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,