Skip to content

Commit

Permalink
πŸ’„ Fix styles for mobile #2701
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Dec 10, 2024
1 parent 79e16c1 commit afb8bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/sections/AnchorLinkList/AnchorLinkList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const AnchorLinkList = forwardRef<HTMLElement, AnchorLinkListProps>(function Anc
const { title, anchorList = [], columns } = data

const getFlow = () => {
const commonGridStyling = 'grid auto-fill-fr lg:place-items-start'
const commonGridStyling = 'grid lg:place-items-start grid-cols-3'
switch (columns) {
case '3':
return `${commonGridStyling} lg:grid-cols-3`
Expand All @@ -29,7 +29,7 @@ const AnchorLinkList = forwardRef<HTMLElement, AnchorLinkListProps>(function Anc
return `${commonGridStyling} lg:grid-cols-6`
default:
case 'flex':
return 'grid auto-fill-fr justify-start'
return 'grid grid-cols-[repeat(auto-fill,minmax(150px,1fr))] justify-start'
}
}
return (
Expand Down

0 comments on commit afb8bee

Please sign in to comment.