Fixes scroll on medium screens
parent
3b74717591
commit
ae30aafafe
|
@ -11,10 +11,7 @@ export interface NavTabProps {
|
|||
const HorizontalTabs = function ({ tabs, linkProps, actions, ...props }: NavTabProps) {
|
||||
return (
|
||||
<div className="-mx-6 mb-2 w-[calc(100%+40px)]">
|
||||
<nav
|
||||
className="no-scrollbar flex space-x-1 overflow-scroll px-6 md:overflow-visible"
|
||||
aria-label="Tabs"
|
||||
{...props}>
|
||||
<nav className="no-scrollbar flex space-x-1 overflow-scroll px-6" aria-label="Tabs" {...props}>
|
||||
{tabs.map((tab, idx) => (
|
||||
<HorizontalTabItem {...tab} key={idx} {...linkProps} />
|
||||
))}
|
||||
|
|
Loading…
Reference in New Issue