Skip to content

Commit

Permalink
fix : fix tabs list height when using default variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Juknum committed Aug 10, 2024
1 parent 949d693 commit 3c18982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const TabsLayout = <T extends string[]>({ children, tabs, defaultValue, i
>
<Tabs.List
mt={tabsStyle === 'filled' && windowWidth > BREAKPOINT_MOBILE_LARGE ? 26 : 0}
mah={tabsStyle === 'default' ? tabs.length * 34 : undefined}
w={windowWidth > BREAKPOINT_MOBILE_LARGE ? (tabsStyle === 'default' ? 200 : 120) : undefined}
>
{tabs.map((tab) => (
Expand Down

0 comments on commit 3c18982

Please sign in to comment.