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