mirror of
				https://github.com/hydralauncher/hydra.git
				synced 2025-03-09 15:40:26 +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(
 | 
			
		||||
    "/catalogue/search",
 | 
			
		||||
    { ...payload, take: 12, skip: 0 },
 | 
			
		||||
    { ...payload, take: 24, skip: 0 },
 | 
			
		||||
    { needsAuth: false }
 | 
			
		||||
  );
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -51,4 +51,7 @@ export const checkboxInput = style({
 | 
			
		|||
 | 
			
		||||
export const checkboxLabel = style({
 | 
			
		||||
  cursor: "pointer",
 | 
			
		||||
  textOverflow: "ellipsis",
 | 
			
		||||
  overflow: "hidden",
 | 
			
		||||
  whiteSpace: "nowrap",
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -100,6 +100,7 @@
 | 
			
		|||
    border-radius: 4px;
 | 
			
		||||
    padding: 16px;
 | 
			
		||||
    border: 1px solid globals.$border-color;
 | 
			
		||||
    align-self: flex-start;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &__ai-recommendations-button-text {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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={{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue