Skip to content

Commit 45c29ec

Browse files
fix(dashboard): SessionDetailPage tab bar scrollable on mobile (#3400) (#3406)
- Add overflow-x-auto + scrollbar-none to tab bar container - Add .scrollbar-none CSS utility (webkit + firefox + IE) - Add aria-label to tablist for a11y At 375px viewport, 6 tabs (600px needed) now scroll horizontally instead of being clipped. Hidden scrollbar keeps it clean. All 1300 tests pass. TypeScript strict clean.
1 parent d74ba5c commit 45c29ec

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

dashboard/src/index.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,3 +1124,13 @@ main[id="main-content"] {
11241124
box-shadow:
11251125
0 40px 80px -15px rgba(0, 0, 0, 0.9);
11261126
}
1127+
1128+
1129+
/* Hide scrollbar but keep scroll functionality — for mobile tab bars */
1130+
.scrollbar-none {
1131+
-ms-overflow-style: none;
1132+
scrollbar-width: none;
1133+
}
1134+
.scrollbar-none::-webkit-scrollbar {
1135+
display: none;
1136+
}

dashboard/src/pages/SessionDetailPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ export default function SessionDetailPage() {
598598
userRole="observer"
599599
/>
600600

601-
<div className="relative flex gap-2 py-1" role="tablist">
601+
<div className="relative flex gap-2 py-1 overflow-x-auto scrollbar-none" role="tablist" aria-label="Session detail tabs">
602602
{TABS.map((tab) => (
603603
<button type="button"
604604
key={tab.id}

0 commit comments

Comments
 (0)