design: improve settings reachability

This commit is contained in:
Xylight committed 2026-02-06 15:46:33 -08:00
1 parent f673f62ce3
commit 17aedff689
13 files changed
+188 -91

No files matched your search

+4 -2
View File
@@ -8,7 +8,8 @@ import { getItemPublished } from '$lib/feature/legacy/item'
export async function load({ url, fetch }) {
const query = url.searchParams.get('q')
const page = Number(url.searchParams.get('page')) || 1
const community = Number(url.searchParams.get('community')) || undefined
const community = Number(url.searchParams.get('community'))
const creator = Number(url.searchParams.get('creator'))
const sort = url.searchParams.get('sort') || 'New'
const type =
url.searchParams.get('type') ||
@@ -19,7 +20,8 @@ export async function load({ url, fetch }) {
if (query) {
const results = await client({ func: fetch }).search({
q: query,
community_id: community ?? undefined,
community_id: community,
creator_id: creator,
limit: 20,
page: page,
sort: (sort as SortType) || 'TopAll',