A social knowledge tool for researchers built on ATProto

feat: unify semble collections grid with its skeleton

+4 -14
+4 -13
src/webapp/features/semble/containers/sembleCollectionsContainer/SembleCollectionsContainer.tsx
··· 2 2 3 3 import useSembleCollections from '@/features/collections/lib/queries/useSembleCollectionts'; 4 4 import InfiniteScroll from '@/components/contentDisplay/infiniteScroll/InfiniteScroll'; 5 - import { Center, Grid, Loader } from '@mantine/core'; 5 + import { Center, Loader, SimpleGrid } from '@mantine/core'; 6 6 import SembleCollectionsError from './Error.SembleCollectionsContainer'; 7 7 import CollectionCard from '@/features/collections/components/collectionCard/CollectionCard'; 8 8 import SembleEmptyTab from '../../components/sembleEmptyTab/SembleEmptyTab'; ··· 47 47 </Center> 48 48 } 49 49 > 50 - <Grid gutter="md"> 50 + <SimpleGrid cols={{ base: 1, sm: 2, lg: 4 }} spacing="md"> 51 51 {allCollections.map((col) => ( 52 - <Grid.Col 53 - key={col.id} 54 - span={{ 55 - base: 12, 56 - sm: 6, 57 - lg: 4, 58 - }} 59 - > 60 - <CollectionCard collection={col} showAuthor /> 61 - </Grid.Col> 52 + <CollectionCard collection={col} showAuthor /> 62 53 ))} 63 - </Grid> 54 + </SimpleGrid> 64 55 </InfiniteScroll> 65 56 ); 66 57 }
-1
src/webapp/next-env.d.ts
··· 1 1 /// <reference types="next" /> 2 2 /// <reference types="next/image-types/global" /> 3 - /// <reference path="./.next/types/routes.d.ts" /> 4 3 5 4 // NOTE: This file should not be edited 6 5 // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.