Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix with three rows shows a vertical scrollbar #1575

Closed
jaakkor2 opened this issue May 5, 2021 · 1 comment
Closed

Matrix with three rows shows a vertical scrollbar #1575

jaakkor2 opened this issue May 5, 2021 · 1 comment
Labels
Format: HTML Related to the default HTML output help wanted Type: Bug
Milestone

Comments

@jaakkor2
Copy link
Contributor

jaakkor2 commented May 5, 2021

Input like this shows a vertical scrollbar. Documenter v0.26.3.

```math
A = \begin{bmatrix}
a & b\\
c & d
\end{bmatrix}
``` .
```math
B = \begin{bmatrix}
a & b & c\\
d & e & f\\
g & h & i
\end{bmatrix}
``` .

documenter

@mortenpi mortenpi added Format: HTML Related to the default HTML output help wanted Type: Bug labels May 6, 2021
@LazyScholar
Copy link

LazyScholar commented Jun 27, 2021

Add there

.math-container {
overflow-x: auto;
}

overflow-y: hidden;

or
add here

.katex-display, mjx-container, .MathJax_Display {
margin: 0.5em 0 !important;
}

padding: 0.5em 0 !important;

this will increase the overall y size of the page (more y space between formulas).

I prefer the first solution as it does not change the overall y-spacing although i could not test it for other use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Format: HTML Related to the default HTML output help wanted Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants