diff options
author | Wang Chucheng <me@wangchucheng.com> | 2021-02-11 18:59:32 +0300 |
---|---|---|
committer | Wang Chucheng <me@wangchucheng.com> | 2021-02-11 18:59:32 +0300 |
commit | c6c7aa2688a00918ec70f7387273e85761a08e90 (patch) | |
tree | 04b6e622fb37776c94b14ea6bfcaf04f70a0effd /assets | |
parent | 6469ab07796309e59f5e813b779bb6e7d45caa6f (diff) |
fix: KaTeX formula overflow
Use a scrollbar and keep the formula as one line.
Because KaTeX does not support auto break for now. See KaTeX/KaTeX#1023.
The day of submitting this commit is the Chinese New Year.
I wish everyone who saw this commit a happy Chinese New Year!
Closes #62
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/markdown.css | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/css/markdown.css b/assets/css/markdown.css index bb3a6b2..da467bf 100644 --- a/assets/css/markdown.css +++ b/assets/css/markdown.css @@ -94,6 +94,10 @@ @apply border py-1 px-3; } +.content .katex { + @apply overflow-x-auto overflow-y-hidden; +} + .content .katex * { @apply border-primary-text; } |