feat: increasing number of results

This commit is contained in:
Chubby Granny Chaser 2024-12-20 22:14:58 +00:00
parent 59655a819a
commit b28d34cf66
No known key found for this signature in database
5 changed files with 7 additions and 3 deletions

View file

@ -8,7 +8,7 @@ const searchGames = async (
) => { ) => {
return HydraApi.post( return HydraApi.post(
"/catalogue/search", "/catalogue/search",
{ ...payload, take: 12, skip: 0 }, { ...payload, take: 24, skip: 0 },
{ needsAuth: false } { needsAuth: false }
); );
}; };

View file

@ -51,4 +51,7 @@ export const checkboxInput = style({
export const checkboxLabel = style({ export const checkboxLabel = style({
cursor: "pointer", cursor: "pointer",
textOverflow: "ellipsis",
overflow: "hidden",
whiteSpace: "nowrap",
}); });

View file

@ -100,6 +100,7 @@
border-radius: 4px; border-radius: 4px;
padding: 16px; padding: 16px;
border: 1px solid globals.$border-color; border: 1px solid globals.$border-color;
align-self: flex-start;
} }
&__ai-recommendations-button-text { &__ai-recommendations-button-text {

View file

@ -404,7 +404,7 @@ export default function Catalogue() {
} }
}} }}
items={downloadSources.map((downloadSource) => ({ items={downloadSources.map((downloadSource) => ({
label: `${downloadSource.name} (${downloadSource.objectIds.length})`, label: downloadSource.name,
value: downloadSource.fingerprint, value: downloadSource.fingerprint,
checked: filters.downloadSourceFingerprints.includes( checked: filters.downloadSourceFingerprints.includes(
downloadSource.fingerprint downloadSource.fingerprint

View file

@ -75,7 +75,7 @@ export function FilterSection<T extends string | number>({
<List <List
data={filteredItems} data={filteredItems}
height={28 * 10} height={28 * (filteredItems.length > 10 ? 10 : filteredItems.length)}
itemHeight={28} itemHeight={28}
itemKey="value" itemKey="value"
styles={{ styles={{