Skip to content

Commit 881855d

Browse files
committed
Add scroll shadow calculation to tabs component for improved UX
1 parent 39e7a14 commit 881855d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/main/frontend/app/components/tabs

src/main/frontend/app/components/tabs/tabs.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export function TabsView<T extends string>({ tabs, activeTab, onSelectTab, onClo
6363
ref={tabsListReference}
6464
style={{ scrollbarWidth: 'none' }}
6565
className="m-0 flex rotate-x-180 flex-nowrap overflow-x-auto p-0 whitespace-nowrap [&::-webkit-scrollbar]:hidden"
66+
onScroll={calculateScrollShadows}
6667
>
6768
{entries.map(([key, tab]) => (
6869
<Tab

0 commit comments

Comments
 (0)