We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef3f1e1 commit 473923aCopy full SHA for 473923a
src/components/sidebarTableOfContents/index.tsx
@@ -33,18 +33,7 @@ function recursiveRender(items: TocItem[]) {
33
} as React.CSSProperties
34
}
35
>
36
- <a
37
- href={`${i.url}`}
38
- style={{
39
- textOverflow: 'ellipsis',
40
- overflow: 'hidden',
41
- whiteSpace: 'nowrap',
42
- display: 'block',
43
- }}
44
- title={i.title}
45
- >
46
- {i.title}
47
- </a>
+ <a href={`${i.url}`}>{i.title}</a>
48
{i.children && <ul>{recursiveRender(i.children)}</ul>}
49
</li>
50
);
src/components/sidebarTableOfContents/style.module.scss
@@ -18,6 +18,10 @@
18
position: relative;
19
line-height: 1.5;
20
display: block;
21
+ text-overflow: ellipsis;
22
+ overflow: hidden;
23
+ white-space: nowrap;
24
+
25
color: var(--link-color);
26
padding: 0.25em 0;
27
opacity: 0.8;
0 commit comments