Spaces:
Running
Running
fix example tile size
Browse files
gradio_dualvision/app_template.py
CHANGED
|
@@ -206,20 +206,18 @@ class DualVisionApp(gr.Blocks):
|
|
| 206 |
.row_reverse {{
|
| 207 |
flex-direction: row-reverse;
|
| 208 |
}}
|
| 209 |
-
.gallery.svelte-
|
|
|
|
|
|
|
| 210 |
width: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 211 |
height: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 212 |
}}
|
| 213 |
-
.gallery.svelte-
|
|
|
|
|
|
|
| 214 |
width: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 215 |
height: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 216 |
}}
|
| 217 |
-
.gallery.svelte-11djrz8 img {{ /* remove slider line from previews */
|
| 218 |
-
clip-path: inset(0 0 0 0);
|
| 219 |
-
}}
|
| 220 |
-
.gallery.svelte-11djrz8 span {{ /* remove slider line from previews */
|
| 221 |
-
visibility: hidden;
|
| 222 |
-
}}
|
| 223 |
h1, h2, h3 {{ /* center markdown headings */
|
| 224 |
text-align: center;
|
| 225 |
display: block;
|
|
|
|
| 206 |
.row_reverse {{
|
| 207 |
flex-direction: row-reverse;
|
| 208 |
}}
|
| 209 |
+
.gallery.svelte-a9zvka {{ /* make examples gallery tiles square */
|
| 210 |
+
min-width: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 211 |
+
min-height: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 212 |
width: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 213 |
height: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 214 |
}}
|
| 215 |
+
.gallery.svelte-p5q82i img {{ /* make examples gallery tiles square */
|
| 216 |
+
min-width: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 217 |
+
min-height: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 218 |
width: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 219 |
height: max({gallery_thumb_min_size}, calc(100vw / 8));
|
| 220 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
h1, h2, h3 {{ /* center markdown headings */
|
| 222 |
text-align: center;
|
| 223 |
display: block;
|