-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Unnecessary horizontal scroll bar for katex blocks #1935
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
Comments
Hey, which renderEngine do you have configured? |
Using the default settings, |
Thanks. Seems fixed by small CSS rule change. I'll post a fix later today. |
Hi, I just did an update on my site, and I don't see the fix. Is it still being implemented, or do I need to do something to see the fix? |
Can you link the page on your site having issues? |
Sure, here are two examples. Other pages in the same website that use https://flyingnobita.com/Notes/Math/Elliptic-Curves---Overview |
Can you check if this fixes the issue: #1989 |
Unfortunately not. FYI, I added the line to the file in my local repo, ran |
Hmm. I'll check. It's probably getting overwritten by katex's cdn styling. Can you replace the line with: If that works, I'll investigate a more solid implementation for the PR. |
This works, thank you! I noticed that for LaTeX blocks that are actually longer than the width, the horizontal scroll bar doesn't show up unless the user explicitly tries scrolling. Is it possible to always show the horizontal scroll bar in this case? This helps make it obvious to the user that there's more to the LaTeX block if the user scrolls. |
Not sure which commit was put in to fix this but the scrollbar is showing for wide content now, thanks! |
Yeah, sorry. Forgot to tag this issue in the PR. |
Description
For all Katex blocks, an unnecessary horizontal scroll bar is always displayed, even if the Katex formula fits properly without scrolling.
To Reproduce
Steps to reproduce the behaviour:
$$
...$$
Expected behaviour
A scrollbar should only be visible when the formula does not fit the view.
Screenshots and Source

Desktop (please complete the following information):
node
Version: 20.19.0npm
version: 10.8.2The text was updated successfully, but these errors were encountered: