Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/services/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,17 @@ export interface ExplorerQuery {
page: number
}

/** How many rows a page of the explorer holds. */
export const PAGE_SIZE = 50
/**
* How many rows a page of the explorer holds.
*
* Twenty, not fifty: at 34–38px a row, twenty is about what a desktop viewport
* shows without scrolling, so Volgende replaces the scrollbar instead of coming
* after it. It also costs the client-side type filter less — that one narrows
* the page rather than the query, and a smaller page is a smaller thing to
* narrow, so `filterByType` leans harder on the caveat the popover already
* states.
*/
export const PAGE_SIZE = 20

export function emptyQuery(): ExplorerQuery {
return { q: '', status: [], type: [], mine: null, sort: null, order: 'desc', page: 1 }
Expand Down
3 changes: 2 additions & 1 deletion src/views/RecoveryListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import { useRowKeyboard } from '@/services/useRowKeyboard'
*/
const router = useRouter()

const PAGE_SIZE = 50
/** Same page as the explorer — see `PAGE_SIZE` in `services/explorer.ts`. */
const PAGE_SIZE = 20

const rows: Ref<IRecovery[]> = ref([])
const loading = ref(true)
Expand Down
Loading