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

Visualization bug: On visualization, resulting statement is dragged down to next line #116

Open
david-a-wheeler opened this issue Jun 23, 2023 · 1 comment

Comments

@david-a-wheeler
Copy link
Contributor

I think there's a minor bug in the visualization display. Let's say I'm using df-2. When visualization is not enabled I see on one line:

✓ 3 P : df-2 |- 2 = ( 1 + 1 )

However, when I enable visualization, there's an unnecessary line break after the justification text : df-2, resulting in:

✓ 3 P : df-2
|- 2 = ( 1 + 1 )
.... (visualization) ...

I think the line break shouldn't happen unless it's necessary.

If this was intentional, can this be a view option? E.g., "Visualizations force linebreak" or something? On small screens display space is a premium, yet I really do want to use the really awesome visualizations.

@expln
Copy link
Owner

expln commented Jun 29, 2023

This is just a consequence of the design. That's not a bug, I noticed it from the very beginning and decided to leave it as is. However, I didn't consider this an issue. I designed it in such a way that the statement and visualization are rendered inside of the same div element. Visualizations are often longer than statements. When you open a visualization, the div containing it becomes wider and browser moves it to the next line. So the statement which is also located in this div moves together with it.

I don't have time to change this. So this issue may persist for some longer period of time.

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

No branches or pull requests

2 participants