Skip to content

Commit 6899f4e

Browse files
committed
level4以下への対応
1 parent 4e45fab commit 6899f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function Sidebar() {
4949
{splitmdcontent
5050
.slice(1)
5151
.map((section, idx) => (
52-
<li key={idx} style={{ marginLeft: section.level===2 ? undefined : "1em" }}>
52+
<li key={idx} style={{ marginLeft: (section.level - 2) + "em"}}>
5353
<Link href={`#${idx+1}`}>{section.title}</Link>
5454
</li>
5555
))}

0 commit comments

Comments
 (0)