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

The formula insert block gets too wide when a formula is long #291

Open
cuchulainn-fun opened this issue Feb 8, 2023 · 0 comments
Open
Labels

Comments

@cuchulainn-fun
Copy link
Member

cuchulainn-fun commented Feb 8, 2023

Bug Report

Expected behavior
When a user insert a long formula in the latex block, that the block doesn't expands beyond the writting area.
For the user experience, it would be interesting for the block to resize in order to always remain in the the writting area.

Actual behavior
When a user insert a long formula in the latex block, the block expands beyond the writting area.

image

However, the formula itself is displayed in the write area as soon as you exit the block (behavior after formula insertion) :

image

Steps to Reproduce

  1. Add an Latex formula block in the post
  2. Then paste a long formula in the block, for example this one : \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} \equiv 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
  3. And then you'll see that the block expands beyond the writting area

Environment

  • Platform: edx platform when Ashley is in

Additional context/Screenshots

Illustration of the behavior in action :
long_formul_block_behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant