Fixed library to always have 2 columns on mobile

This commit is contained in:
DrMint 2022-02-15 17:55:45 +01:00
parent f13b93887f
commit 502d5866f4
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export default function Library(props: LibraryProps): JSX.Element {
); );
const contentPanel = ( const contentPanel = (
<ContentPanel width={ContentPanelWidthSizes.large}> <ContentPanel width={ContentPanelWidthSizes.large}>
<div className="grid gap-8 items-end grid-cols-[repeat(auto-fill,_minmax(15rem,1fr))]"> <div className="grid gap-8 items-end grid-cols-2 desktop:grid-cols-[repeat(auto-fill,_minmax(14rem,1fr))]">
{props.libraryItems.libraryItems.data.map((item) => ( {props.libraryItems.libraryItems.data.map((item) => (
<LibraryItemComponent key={item.id} item={item.attributes} /> <LibraryItemComponent key={item.id} item={item.attributes} />
))} ))}