Skip to content

Commit 4cea65b

Browse files
committed
fix: proper toc indent
1 parent da9ecfa commit 4cea65b

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

website/src/components/Toc/Desktop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const TocDesktopItems = ({
4444
linkActiveClassName,
4545
}: TocProps) => (
4646
<Toc
47-
className={c(markdown, s.items, className)}
47+
className={c(markdown, s.toc, s.items, className)}
4848
toc={toc}
4949
minLevel={minLevel}
5050
maxLevel={maxLevel}

website/src/components/Toc/styles.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,11 @@ $desktop-toc-width: 200px;
5252
.heading {
5353
font-size: 1rem;
5454
}
55+
56+
// don't offset first layer
57+
.toc {
58+
> li {
59+
margin-left: 0;
60+
}
61+
}
5562
}

website/src/components/Toc/styles.module.scss.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// AUTOGENERATED FILE -- DO NOT EDIT DIRECTLY
2-
32
declare namespace StylesModuleScssNamespace {
43
export interface IStylesModuleScss {
54
active: string;
65
heading: string;
76
items: string;
87
link: string;
98
nav: string;
9+
toc: string;
1010
}
1111
}
1212

website/src/layout/components/ContentContainer/styles.module.scss.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ declare namespace StylesModuleScssNamespace {
1717
navItem: string;
1818
navbar: string;
1919
right: string;
20+
toc: string;
2021
}
2122
}
2223

website/src/layout/components/ContentWrapper/styles.module.scss.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ declare namespace StylesModuleScssNamespace {
1111
items: string;
1212
link: string;
1313
nav: string;
14+
toc: string;
1415
}
1516
}
1617

website/src/layout/components/TocContainer/styles.module.scss.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ declare namespace StylesModuleScssNamespace {
1313
navItem: string;
1414
navbar: string;
1515
right: string;
16+
toc: string;
1617
tocContainer: string;
1718
}
1819
}

0 commit comments

Comments
 (0)