Skip to content

Commit 7557766

Browse files
authored
bringing back i - thanks rsese (#22969)
1 parent 640b1cd commit 7557766

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

components/article/ArticlePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ export const ArticlePage = () => {
123123

124124
<ActionList
125125
key={title}
126-
items={miniTocItems.map((items) => {
126+
items={miniTocItems.map((items, i) => {
127127
return {
128-
key: title,
128+
key: title + i,
129129
text: title,
130130
renderItem: () => <ul>{renderTocItem(items)}</ul>,
131131
}

components/ui/MarkdownContent/stylesheets/lists.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
&:before {
1616
top: 2px;
1717
font-size: 16px;
18-
width: 24px;
1918
content: counter(li);
2019
counter-increment: li;
2120
position: absolute;
@@ -26,6 +25,10 @@
2625
font-weight: bold;
2726
line-height: 35px;
2827
text-align: right;
28+
border-radius: 50%;
29+
width: 24px;
30+
height: 24px;
31+
background-color: var(--color-canvas-default);
2932
}
3033

3134
&:after {

0 commit comments

Comments
 (0)