Skip to content

Commit

Permalink
feat: increasing number of results
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrannychaseroperation committed Dec 20, 2024
1 parent 59655a8 commit b28d34c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/events/catalogue/search-games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const searchGames = async (
) => {
return HydraApi.post(
"/catalogue/search",
{ ...payload, take: 12, skip: 0 },
{ ...payload, take: 24, skip: 0 },
{ needsAuth: false }
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ export const checkboxInput = style({

export const checkboxLabel = style({
cursor: "pointer",
textOverflow: "ellipsis",
overflow: "hidden",
whiteSpace: "nowrap",
});
1 change: 1 addition & 0 deletions src/renderer/src/pages/catalogue/catalogue.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
border-radius: 4px;
padding: 16px;
border: 1px solid globals.$border-color;
align-self: flex-start;
}

&__ai-recommendations-button-text {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/catalogue/catalogue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export default function Catalogue() {
}
}}
items={downloadSources.map((downloadSource) => ({
label: `${downloadSource.name} (${downloadSource.objectIds.length})`,
label: downloadSource.name,
value: downloadSource.fingerprint,
checked: filters.downloadSourceFingerprints.includes(
downloadSource.fingerprint
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/catalogue/filter-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function FilterSection<T extends string | number>({

<List
data={filteredItems}
height={28 * 10}
height={28 * (filteredItems.length > 10 ? 10 : filteredItems.length)}
itemHeight={28}
itemKey="value"
styles={{
Expand Down

0 comments on commit b28d34c

Please sign in to comment.