Skip to content

Commit

Permalink
fix(anchor): [anchor] 修复单个一级锚点没有线条的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi-20 committed Oct 23, 2024
1 parent 239f6af commit 5ff8e1d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/theme/src/anchor/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,13 @@
}
}

& > .@{anchor-prefix-cls}-link:last-child > .@{anchor-prefix-cls}-link-title:after {
display: none;
& > .@{anchor-prefix-cls}-link:last-child {
& > .@{anchor-prefix-cls}-link:last-child,
&:not(:first-child) {
& > .@{anchor-prefix-cls}-link-title:after {
display: none;
}
}
}
}
}
Expand Down

0 comments on commit 5ff8e1d

Please sign in to comment.