Skip to content

Commit

Permalink
center organism cards on small screens (#2497)
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Aug 21, 2024
1 parent a9a8ab8 commit 7ca102a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/components/IndexPage/OrganismCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const formatNumber = (num: number) => new Intl.NumberFormat('en-US').format(num)

<a
href={routes.organismStartPage(key)}
class='block rounded border border-gray-300 p-4 m-2 w-64 text-center hover:bg-gray-100'
class='block rounded border border-gray-300 p-4 m-2 w-64 text-center hover:bg-gray-100 mx-auto sm:mx-2'
>
{image !== undefined && <img src={image} class='h-32 mx-auto mb-4' alt={displayName} />}
<h3 class='font-semibold'>{displayName}</h3>
Expand Down

0 comments on commit 7ca102a

Please sign in to comment.