From c0958c6869eb7b36070abbbe97dfcef642ff423a Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 17 Jul 2026 21:43:52 +0000 Subject: [PATCH] fix: align favourites empty-state colspan with compact columns When the item workspace is open, Evidence is hidden at every breakpoint, so the empty-state row must span five columns instead of six at 2xl. Co-authored-by: BigSimmo --- .../favourites-command-library-page.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/clinical-dashboard/favourites-command-library-page.tsx b/src/components/clinical-dashboard/favourites-command-library-page.tsx index 25756904..85463590 100644 --- a/src/components/clinical-dashboard/favourites-command-library-page.tsx +++ b/src/components/clinical-dashboard/favourites-command-library-page.tsx @@ -728,12 +728,16 @@ function FavouritesTable({ })} {tableRows.length === 0 ? ( - {/* The Evidence column is hidden below 2xl, so span 5 there and 6 at 2xl+. */} - {[ - { colSpan: 5, className: "px-4 py-10 text-center 2xl:hidden" }, - { colSpan: 6, className: "hidden px-4 py-10 text-center 2xl:table-cell" }, - ].map(({ colSpan, className }) => ( - + {/* Compact (workspace open) always hides Evidence, so stay at 5 columns. + Otherwise Evidence appears only from 2xl, so span 5 below 2xl and 6 at 2xl+. */} + {(compact + ? [{ colSpan: 5, className: "px-4 py-10 text-center" }] + : [ + { colSpan: 5, className: "px-4 py-10 text-center 2xl:hidden" }, + { colSpan: 6, className: "hidden px-4 py-10 text-center 2xl:table-cell" }, + ] + ).map(({ colSpan, className }) => ( +

No favourites match