Skip to content

Commit

Permalink
feat(website): Limit organism card container width when there are 5 o…
Browse files Browse the repository at this point in the history
…rganisms (#3409)

* feat(website): Limit organism card container width

* Update index.astro

* Update index.astro
  • Loading branch information
theosanderson authored Dec 9, 2024
1 parent 1ae4ed0 commit bd9fcbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const organismStatisticsMap = await getOrganismStatisticsMap(
<div class='max-w-6xl mx-auto'>
<WelcomeMessage websiteName={websiteName} welcomeMessageHTML={welcomeMessageHTML} />

<div class='flex flex-wrap gap-x-4'>
<div class=`flex flex-wrap gap-x-4 ${getConfiguredOrganisms().length ===5 ? "max-w-4xl" : ""}`>
{
getConfiguredOrganisms().map(({ key, displayName, image }) => (
<OrganismCard
Expand Down

0 comments on commit bd9fcbc

Please sign in to comment.