From 8bb2486a34ea96fb5d262ebb113ed517ef6028c8 Mon Sep 17 00:00:00 2001 From: bchanot Date: Mon, 16 Nov 2026 17:59:47 +0100 Subject: [PATCH] fix(app): Administration home cards laid out as board 29 B MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - the grid aligns its cards at the start; Espèces and Accès et habilitations stack in one right-hand column at their own height - when the sheets card is refused, that column spans the grid and lays its cards side by side, so no half of the page stays empty - the card's sheet name links are 44 px tall on the phone, unchanged from sm up - the card item keeps the list row's rhythm (space-y-1), a larger gap only above the working copy action No test changed. --- .../app/routes/app/admin/AdminHomeRoute.tsx | 61 ++++++++++++------- 1 file changed, 38 insertions(+), 23 deletions(-) diff --git a/apps/app/src/app/routes/app/admin/AdminHomeRoute.tsx b/apps/app/src/app/routes/app/admin/AdminHomeRoute.tsx index cc5b5731..67e16681 100644 --- a/apps/app/src/app/routes/app/admin/AdminHomeRoute.tsx +++ b/apps/app/src/app/routes/app/admin/AdminHomeRoute.tsx @@ -35,6 +35,20 @@ const SUBHEADING = const LINK = 'inline-flex min-h-11 items-center text-sm font-medium text-[var(--color-accent-strong)] underline underline-offset-2' +/** The sheet's name: a 44 px target on the phone, plain text height from `sm` up. */ +const SHEET_LINK = + 'mr-auto min-w-0 font-medium text-[var(--color-ink)] underline-offset-2 hover:underline ' + + 'max-sm:inline-flex max-sm:min-h-11 max-sm:items-center' + +/** + * Board 29 B: the sheets card on the left, the entry cards stacked on the right at + * their own height. Alone (the sheets card refused), the column spans the grid and + * lays its cards side by side, so no half of the page stays empty. + */ +const CARDS = 'grid items-start gap-4 md:grid-cols-2' +const ENTRY_COLUMN = + 'grid items-start gap-4 md:only:col-span-2 md:only:grid-cols-2' + /** « Vos habilitations : … · rôle propriétaire · session renforcée … active. » (board 10). */ function permissionsLine(t: Translate, permissions: AdminPermissions): string { const list = permissions.capabilities.map((kind) => @@ -70,12 +84,9 @@ function SheetItem({ sheet, species, editor }: SheetItemProps) { const t = useT() const locale = useLocaleStore((s) => s.locale) return ( -
  • +
  • - + {localized(sheet.name, locale)} @@ -88,11 +99,13 @@ function SheetItem({ sheet, species, editor }: SheetItemProps) {

    {/* The working copy action (W1): editors only, on the historical sheet. */} {sheet.historical && editor && ( - +
    + +
    )}
  • ) @@ -260,22 +273,24 @@ export default function AdminHomeRoute() { )} -
    +
    - - {permissions.owner && ( +
    - )} + {permissions.owner && ( + + )} +
    )