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
scroll to top when api clicked in spaces #4714
Conversation
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-4714-all-demos |
the PR preview is a bit messed up because there are so many endpoints on the page but it seem to work. |
This is very similar to the error modal fix in that it is spaces only and cannot currently be tested. |
Nice! Taking a look now |
Tested and looks like the fix works! Is there a way we can get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed the fix locally in a jupyter iframe, locally in a new tab, and on Spaces.
I'm not actually sure, this API is provided by the iFrameResizer library that we use and the documentation is a little thin. I'll see if I can get the behaviour argument working. |
I checked and we can't do this from our side just yet but we can do it if we make a tweak on spaces. I'll figure out how to setup moonlanding and see if they'd be open to a PR. |
Closes #4682.
Click view api on a space and it should scroll to the top.