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 && ( + + )} +
    )