fixed horizontal nav on mobile, hiding scrollbar (#4176)
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
c610c73378
commit
d0aaa4d83b
2 files changed
+5
-2
No files matched your search
@@ -9,7 +9,10 @@ export interface NavTabProps {
|
||||
const HorizontalTabs: FC<NavTabProps> = ({ tabs, ...props }) => {
|
||||
return (
|
||||
<>
|
||||
<nav className="flex space-x-1 overflow-scroll md:overflow-visible" aria-label="Tabs" {...props}>
|
||||
<nav
|
||||
className="no-scrollbar flex space-x-1 overflow-scroll px-6 md:overflow-visible md:px-0"
|
||||
aria-label="Tabs"
|
||||
{...props}>
|
||||
{tabs.map((tab, idx) => (
|
||||
<HorizontalTabItem {...tab} key={idx} />
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user