-
Notifications
You must be signed in to change notification settings - Fork 111
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
[Feature Request] Setting to remove scrollbar in thumbnail view #40
Comments
This is... surprisingly complicated. I tried what feels like a million things today to get it to work, but in the end I failed 😞
Maybe, you can get it to work by changing the installed gradio repo, but that would be extremely hacky and might break other extensions. |
Yeah, it looked really odd and core to gradio. I was hoping you had more insight into it than I did as I haven't ever worked with the library. But I get it if it's too hard to change. I'll keep looking at it myself and let you know if I find anything as I learn Gradio it's self. Thanks for looking into it though. |
In that case I'll leave a few pointers here... via Javascript to the correct element:
relevant gradio 3.16 files: relevant gradio 3.17 file: And one other thing I noticed, when clicking on a picture doesn't work, making the browser window smaller fixes it (?). |
So, I think I found a solution.
Just need to add
Though it shouldn't take much to make that an option in the I have that hacked into my code at the moment and it seems to be working well. Only issue I see if that if there are very few images in the gallery the preview, once clicked on, doesn't resize the gallery to larger. Though I suspect that could be fixed with css now that the fixed height isn't limiting the click handler. But I haven't tested that yet. |
Doesn't seem to work for me. With this option, clicking on a thumbnail does nothing again. Did you change anything else? |
oh my....i wish it would work |
height="auto" only works for row count <=3. If we have more rows, it wont work. which I do...
It's not a fix, and I hope that you guys can come up with something more appropriate. |
I would take a dirty fix. Unfortunately that doesn't work for me. It's the same symptom, clicking on a thumbnail does nothing. This is with 5 columns, fullpage browser on 1920x1080. However, if I make the browser window smaller, it starts working when about half-size. I have no idea what the connection with window size could be. |
This issue got fixed on the Gradio side. To try it out you'll need Gradio >=3.36.0, the current version is 3.39.0. The main a1111 branch is still running on 3.32.0. So you can either wait until a1111 gets updated or if you want to try it out before that, change the version number in requirements.txt and requirements_versions.txt. Activation via settings, as usual: |
The scrollbar in the thumbnail view is totally unnecessary and only limits the ability to see all of the thumbnails on a large screen. I wouldn't mind if it was removed entirely but at least an option to disable it would be preferred. I've tried to handle it with a custom CSS rule but it causes the click handler to break.
The text was updated successfully, but these errors were encountered: