mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
feat: increasing number of results
This commit is contained in:
parent
59655a819a
commit
b28d34cf66
5 changed files with 7 additions and 3 deletions
|
@ -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 }
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -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",
|
||||||
});
|
});
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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={{
|
||||||
|
|
Loading…
Reference in a new issue