Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32378e4

Browse files
committed
fixed toc title too long overflowing out of the box
1 parentb5a5f86 commit32378e4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎source/css/obsidian.styl‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ h1.title {
18181818
display:flex;
18191819
flex-direction:row;
18201820
justify-content:flex-start;
1821-
width:100%;
1821+
width:calc(100%-1rem);
18221822
padding:0.1rem001rem;
18231823
span{
18241824
display:flex;
@@ -1829,21 +1829,24 @@ h1.title {
18291829
color:#9e9e9e;
18301830
font-size:inherit;
18311831
padding:00.2rem;
1832+
word-wrap:break-word;
18321833
&:nth-of-type(2){
18331834
flex-grow:2;
18341835
}
18351836
}
18361837
}
18371838

18381839
.toc-child{
1839-
width:100%;
1840+
width:calc(100%-1rem);
18401841
flex-direction:column;
1842+
flex-wrap:wrap;
18411843
list-style-type:none;
18421844
margin-block-start:0;
18431845
margin-block-end:0;
18441846
margin-inline-start:0;
18451847
margin-inline-end:0;
1846-
padding-inline-start:1.5rem;
1848+
padding-inline-start:0;
1849+
margin-left:1rem;
18471850
display:none;
18481851
transition:height400msease-in-out;
18491852
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp