feat(article): make long KaTeX equations scrollable in the x-axis (#706)

* Make long KaTeX equations scrollable in the x-axis

Suggested from: https://katex.org/docs/issues.html, I have tested it adding a long equation and activating a phone user agent.

* refactor: move KaTeX style to article.scss
This commit is contained in:
MartinAramayo 2022-10-29 09:38:44 -03:00 committed by GitHub
parent 86314608e3
commit 30e033c660
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -412,4 +412,10 @@
margin-right: calc((var(--card-padding)) * -1);
width: calc(100% + var(--card-padding) * 2);
}
/// Make long KaTeX equations scrollable in the x-axis
.katex-display > .katex {
overflow-x: auto;
overflow-y: hidden;
}
}