Spaces:
Running on Zero
Running on Zero
Maxim Kruglikov Claude Opus 4.7 (1M context) commited on
Commit ·
bdf41b9
1
Parent(s): 6b38433
Fix reference Gallery layout: contain-fit, grid-only, no preview hero
Browse filesThe Gallery was cropping uploaded references with object_fit=cover and
blowing up a single image into a hero view that filled the whole panel.
Switch to object_fit=contain (matches gr.Image letterbox behavior),
disable preview / fullscreen / download chrome so uploads stay as
thumbnails in the 4-col grid.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
app.py
CHANGED
|
@@ -163,7 +163,12 @@ with gr.Blocks(title="MegaStyle Style Comparison", theme=gr.themes.Soft()) as de
|
|
| 163 |
height=360,
|
| 164 |
columns=4,
|
| 165 |
rows=2,
|
| 166 |
-
object_fit="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
interactive=True,
|
| 168 |
)
|
| 169 |
|
|
|
|
| 163 |
height=360,
|
| 164 |
columns=4,
|
| 165 |
rows=2,
|
| 166 |
+
object_fit="contain",
|
| 167 |
+
preview=False,
|
| 168 |
+
allow_preview=False,
|
| 169 |
+
show_fullscreen_button=False,
|
| 170 |
+
show_share_button=False,
|
| 171 |
+
show_download_button=False,
|
| 172 |
interactive=True,
|
| 173 |
)
|
| 174 |
|