From 91644255a1f6de0b9641f48c5c2db9e09384ad3e Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Thu, 3 Dec 2026 21:30:29 -0600 Subject: [PATCH] better card ratio --- CLAUDE.md | 2 ++ packages/website/src/components/ToolCard.astro | 4 ++++ packages/website/src/components/ToolCardLayoutColumn.astro | 3 +-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 4597675f0..2a06dcc6a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,5 +1,7 @@ # BlitzKit +Read `README.md` for setup and running: the dev server starts with `scripts/dev-website.sh` (Bun, not npm/Node). + ## Git - Never commit or push. diff --git a/packages/website/src/components/ToolCard.astro b/packages/website/src/components/ToolCard.astro index e520defbc..a59458367 100644 --- a/packages/website/src/components/ToolCard.astro +++ b/packages/website/src/components/ToolCard.astro @@ -29,6 +29,10 @@ const name = strings.tools[tool.id as keyof typeof strings.tools]; position: relative; overflow: hidden; + @media (width < 58rem) { + aspect-ratio: 3 / 2; + } + &[data-disabled="true"] { opacity: calc(1 / 8); cursor: not-allowed; diff --git a/packages/website/src/components/ToolCardLayoutColumn.astro b/packages/website/src/components/ToolCardLayoutColumn.astro index cb40f3c6a..c30cf0255 100644 --- a/packages/website/src/components/ToolCardLayoutColumn.astro +++ b/packages/website/src/components/ToolCardLayoutColumn.astro @@ -21,12 +21,11 @@ const { major } = Astro.props; @media (width < 58rem) { flex-direction: row; + align-items: flex-start; flex: none; - height: 20rem; &[data-major="true"] { flex: none; - height: 30rem; } } }