Lay the medication tabs out three-up on a phone

Wrapped, the last two tabs stretched across the second row.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 19:34:16 +02:00
1 parent 7d3ee68bf1
commit 3b4d031e1e
1 file changed
+3 -3
@@ -525,9 +525,9 @@ export function MedicationDetailTabs({
data-slot="medication-detail-tabs"
>
<TabsList
// Six tabs do not fit a phone in one row; they wrap into two
// there instead of scrolling a label off the edge.
className="w-full justify-start max-sm:h-auto! max-sm:flex-wrap"
// Six tabs do not fit a phone in one row; they sit in a three-up
// grid there instead of scrolling a label off the edge.
className="w-full justify-start max-sm:grid! max-sm:h-auto! max-sm:grid-cols-3"
aria-label={t("medications.detail.shell.tablistLabel")}
>
{availableTabs.map((slug) => (