Skip to content

Commit b5d7f07

Browse files
committed
remove scrollbar for breadcrumb
1 parent 96a3794 commit b5d7f07

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

packages/components/src/Breadcrumbs/Breadcrumbs.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export const Breadcrumbs = ({ steps }: BreadcrumbsProps) => {
1919
alignItems: 'center',
2020
width: '100%',
2121
overflowX: 'auto',
22+
scrollbarWidth: 'none',
23+
'&::-webkit-scrollbar': {
24+
display: 'none',
25+
},
2226
}}
2327
>
2428
{steps.map((step, index) => {

src/pages/common/Breadcrumbs/Breadcrumbs.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,15 @@ export const Breadcrumbs = (props: BreadcrumbsProps) => {
8585
paddingLeft: [2, 0, 0],
8686
}}
8787
>
88-
<Flex sx={{ flex: ['none', 'none', 1], overflowX: 'auto', width: '100%' }}>
88+
<Flex
89+
sx={{
90+
flex: ['none', 'none', 1],
91+
overflowX: 'auto',
92+
width: '100%',
93+
scrollbarWidth: 'none',
94+
'&::-webkit-scrollbar': { display: 'none' },
95+
}}
96+
>
8997
<BreadcrumbsComponent steps={breadcrumbsSteps} />
9098
</Flex>
9199

0 commit comments

Comments
 (0)