hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.26k stars 282 forks source link

🪲 Fix showing and hiding of variable view #5556

Closed jpelay closed 1 month ago

jpelay commented 1 month ago

The variable view was acting a little wanky, showing and hiding seemingly at random. After some digging, I found that this area was being hidden and shown by several pieces of code, so I tried to simplify the logic a bit; also instead of just hiding and showing the box, I added a little bit of animation by using JQuery's slideToggle.

Fixes #5553

How to test

Go to the code page, debug a program, and verify that the variable view is updated with each step, and that it can be hidden and shown without issues.

mergify[bot] commented 1 month ago

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).