Skip to content

Commit efe64e5

Browse files
committed
[B-000] Fix bug: finding proper toc
1 parent a47b6f4 commit efe64e5

5 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/pages/about/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ const styles = {
386386
overflow-wrap: break-word;
387387
word-wrap: break-word;
388388
word-break: break-all;
389-
word-break: break-word;
390389
hyphens: auto;
391390
}
392391

src/templates/archive/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ const styles = {
185185
overflow-wrap: break-word;
186186
word-wrap: break-word;
187187
word-break: break-all;
188-
word-break: break-word;
189188
hyphens: auto;
190189
}
191190

src/templates/blog.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,13 @@ const styles = {
9191
overflow-wrap: break-word;
9292
word-wrap: break-word;
9393
word-break: break-all;
94-
word-break: break-word;
9594
hyphens: auto;
9695
}
9796
9897
code {
9998
overflow-wrap: break-word;
10099
word-wrap: break-word;
101100
word-break: break-all;
102-
word-break: break-word;
103101
hyphens: auto;
104102
}
105103

src/templates/post/post-article.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,21 +434,20 @@ const styles = {
434434
p,
435435
ul,
436436
ol {
437-
margin-bottom: 1.602rem;
437+
// margin-top: 1.6rem;
438+
// margin-bottom: 1.6rem;
438439
overflow-wrap: break-word;
439440
word-wrap: break-word;
440441
word-break: break-all;
441-
word-break: break-word;
442442
hyphens: auto;
443443
}
444444
445445
ul,
446446
ol {
447-
padding-left: 1.5rem;
448447
449448
ul,
450449
ol {
451-
margin-bottom: 0;
450+
452451
}
453452
}
454453

src/templates/post/table-of-contents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const TableOfContents: React.FunctionComponent<Props> = ({ toc, depth, currentHe
4646
},
4747
// currentHeaderUrl 문자열이 href 속성에 포함된다면 아래 스타일을 부여한다.
4848
// 현재 스크롤에 해당하는 Header를 하이라이트 하기 위함
49-
[`& ul > li a[href*="${currentHeaderUrl}"]`]: {
49+
[`& ul > li a[href="${currentHeaderUrl}"]`]: {
5050
color: 'var(--text0)',
5151
fontWeight: '600',
5252
},

0 commit comments

Comments
 (0)