mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
fix: resolve single-line code block wrapping issue (#121)
white-space should be pre-wrap - or else, a single long line of code block may break the layout of whole page on mobile devices use word break for code and blockquote, white-space: pre for fenced code
This commit is contained in:
committed by
Sat Naing
parent
9eeb8fc76e
commit
0af32518b3
+5
-2
@@ -115,9 +115,12 @@
|
|||||||
@apply bg-skin-card-muted;
|
@apply bg-skin-card-muted;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code, blockquote {
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre > code {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
overflow: scroll;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user