From 0be35289294f4196ca2ed61a9227211adecfba6a Mon Sep 17 00:00:00 2001 From: rocketgarden Date: Thu, 1 Jun 2023 17:27:28 -0700 Subject: [PATCH] Tweak css workaround to apply only to image browser tab Add id selector for image browser tab so the css rule doesn't crop thumbnails in other tabs (e.g. txt2img results pane) --- style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.css b/style.css index cc5da2d..0037c04 100644 --- a/style.css +++ b/style.css @@ -17,7 +17,7 @@ div[id^="image_browser_tab"][id$="image_browser_gallery"].hide_loading > .svelte /* Workaround until gradio version is updated to a version that fixes it see https://github.com/gradio-app/gradio/issues/1590 */ -.thumbnail-item > img { +#tab_image_browser .thumbnail-item > img { width: auto !important; height: auto !important; }