openfga / openfga.dev

OpenFGA website and documentation
http://openfga.dev/
Apache License 2.0
35 stars 61 forks source link

Fix jank when clicking through Tabbed Viewers #69

Open matldupont opened 2 years ago

matldupont commented 2 years ago

The viewport bounces around when clicking through the tabbed code views:

https://user-images.githubusercontent.com/3803431/173619732-1b53c387-c2a3-4cd9-98c6-e6e7516ceb11.mov

miparnisari commented 2 years ago

Sometimes I also see the page not working when trying to switch between them 😬

image

Siddhant-K-code commented 11 months ago

This seems more stable now. And, sometimes it bounces because it changes the language for each code snippet. And, some snippets are small/long in length. So the layout gets shifted. I don't think, we can do anything in such cases (which are very rare). IMO, We can close this issue now.

https://github.com/openfga/openfga.dev/assets/55068936/dd249fa3-b5aa-4126-bf80-e67c95a25d76