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

ASTs in browser #3

Open
jasonhemann opened this issue Jun 1, 2022 · 2 comments
Open

ASTs in browser #3

jasonhemann opened this issue Jun 1, 2022 · 2 comments

Comments

@jasonhemann
Copy link

I've tried looking at a couple of reductions, e.g. ((MULT ONE) ONE) in my browser, and I cannot see the full trees, either with or without desugaring. I've tried on Chrome Version 101.0.4951.64 (Official Build) (x86_64) and Safari Version 15.3 (15612.4.9.1.7, 15612). Here are a couple of representative examples in both browsers. Do you have any ideas what I'm doing wrong?

Screen Shot 2022-05-31 at 21 18 38
Screen Shot 2022-05-31 at 21 18 30
Screen Shot 2022-05-31 at 21 18 14
Screen Shot 2022-05-31 at 21 17 59
Screen Shot 2022-05-31 at 21 17 44

@sampsyo
Copy link
Collaborator

sampsyo commented Jun 1, 2022

I don't think you're doing anything wrong! We just don't have a very good system for displaying large trees. The CSS/etc. work OK for very small trees where everything happens to fit in the small space allotted to display them, but things break pretty bad (as you've shown here) if the image overflows that small area. A big reason for the weird overlap thing is that we are not giving enough space to draw the two trees (before and after a given reduction step) side by side.

It would be great to somehow solve this, although I don't have any specific ideas for what the better alternative would be… maybe putting the image in a horizontally scrolling box would help?

@jasonhemann
Copy link
Author

I think that sounds like a fine solution. It would work for me!

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