From 4674ff3389ea059bf14859ed6aa4e7b8762d8cea Mon Sep 17 00:00:00 2001 From: BOHA Date: Sat, 13 Jun 2026 21:34:17 +0200 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20equal-height=20cards=20?= =?UTF-8?q?=E2=80=94=20stretch=20+=20fill=20instead=20of=20ragged?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dashboard content grids used alignItems:"start", so cards in a row sized to their own content (ragged bottoms). Switch to alignItems:"stretch" so each row shares one height, and make the wrapped cards actually fill the cell: - DashProfile / DashSessions: motion-div + Card height:100% (the inner card was shorter than its stretched cell). - Right column (Aktivní projekty + Nabídky): cards flex:1 so the stacked pair fills the column to match the neighbouring single cards. CSS-only; no logic change. tsc clean, lint 0, 669 tests pass. Verified live via Playwright (3-col row cells equal at 607; bottom 2-col cards equal at 257). Co-Authored-By: Claude Opus 4.8 (1M context) --- package-lock.json | 4 ++-- package.json | 2 +- .../components/dashboard/DashProfile.tsx | 3 ++- .../components/dashboard/DashSessions.tsx | 3 ++- src/admin/pages/Dashboard.tsx | 22 ++++++++++++++----- 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5aa809c..cb25ade 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "app-ts", - "version": "2.4.37", + "version": "2.4.38", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "app-ts", - "version": "2.4.37", + "version": "2.4.38", "license": "ISC", "dependencies": { "@anthropic-ai/sdk": "^0.102.0", diff --git a/package.json b/package.json index 6996c7a..7433121 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "app-ts", - "version": "2.4.37", + "version": "2.4.38", "description": "", "main": "dist/server.js", "scripts": { diff --git a/src/admin/components/dashboard/DashProfile.tsx b/src/admin/components/dashboard/DashProfile.tsx index 75b315a..edbee99 100644 --- a/src/admin/components/dashboard/DashProfile.tsx +++ b/src/admin/components/dashboard/DashProfile.tsx @@ -262,8 +262,9 @@ export default function DashProfile({ initial={reduce ? false : { opacity: 0, y: 12 }} animate={reduce ? undefined : { opacity: 1, y: 0 }} transition={{ duration: 0.25, delay: 0.15 }} + style={{ height: "100%" }} > - + - + @@ -360,10 +362,18 @@ export default function Dashboard() { )} - {/* Pravy sloupec: projekty + nabidky */} - + {/* Pravy sloupec: projekty + nabidky — both grow so the stacked + cards fill the column to match the neighbouring cards' height. */} + {dashData?.projects && ( - + +