mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
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:
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) => (
|
||||
|
||||
Reference in new issue
Block a user