Skip to content

Commit 01236aa

Browse files
committed
chore(ui): remove padding of breadcrumb item
1 parent 634556b commit 01236aa

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

packages/ui/src/components/breadcrumb/demos/1.Basic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function Demo() {
2323
{
2424
id: 0,
2525
title: (
26-
<div style={{ display: 'flex', alignItems: 'center', gap: '0 4px' }}>
26+
<div style={{ display: 'flex', alignItems: 'center', gap: '0 4px', padding: '0 6px' }}>
2727
<HomeOutlined />
2828
Home
2929
</div>
@@ -32,12 +32,12 @@ export default function Demo() {
3232
},
3333
{
3434
id: 1,
35-
title: <a>Component</a>,
35+
title: <a style={{ padding: '0 6px' }}>Component</a>,
3636
link: true,
3737
},
3838
{
3939
id: 2,
40-
title: 'Breadcrumb',
40+
title: <span style={{ padding: '0 6px' }}>Breadcrumb</span>,
4141
},
4242
]}
4343
></DBreadcrumb>

packages/ui/src/components/breadcrumb/demos/2.Separator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function Demo() {
2323
{
2424
id: 0,
2525
title: (
26-
<div style={{ display: 'flex', alignItems: 'center', gap: '0 4px' }}>
26+
<div style={{ display: 'flex', alignItems: 'center', gap: '0 4px', padding: '0 6px' }}>
2727
<HomeOutlined />
2828
Home
2929
</div>
@@ -32,12 +32,12 @@ export default function Demo() {
3232
},
3333
{
3434
id: 1,
35-
title: <a>Component</a>,
35+
title: <a style={{ padding: '0 6px' }}>Component</a>,
3636
link: true,
3737
},
3838
{
3939
id: 2,
40-
title: 'Breadcrumb',
40+
title: <span style={{ padding: '0 6px' }}>Breadcrumb</span>,
4141
},
4242
]}
4343
dSeparator={<RightOutlined dSize="0.9em" />}

packages/ui/src/styles/components/breadcrumb.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
}
1111

1212
@include e(item) {
13-
padding: 0 6px;
1413
line-height: 1.5;
1514
color: var(--#{$rd-prefix}text-color-sub);
1615
border-radius: var(--#{$rd-prefix}border-radius);

0 commit comments

Comments
 (0)