Update app.py
Browse files462 unmodified lines463464465466467468469470471472473474475476477478479480481482483484485486487488489490462 unmodified linesmargin: 0 auto !important;justify-content: center !important;gap: 8px !important;min-height: 150px !important; /* Added minimum height */}.centered-examples .thumb {height: 100px !important;width: 100px !important;object-fit: cover !important;margin: 5px !important; /* Added margin between thumbs */}/* 1) Global override: remove any forced sizing on .fixed-height anywhere */.fixed-height.svelte-842rpi.svelte-842rpi {min-height: 0 !important; /* cancel the global min-height */max-height: none !important; /* cancel the global max-height */height: auto !important; /* allow auto height */}/* 2) Same-query override: mirror Gradio’s media query exactly */@media (min-width: 1280px) {/* target the exact same class chain inside the breakpoint */.fixed-height.svelte-842rpi.svelte-842rpi {min-height: 0 !important; /* zero-out the 55vh/min-height there */max-height: none !important; /* remove the viewport-height cap */height: auto !important; /* let content dictate height */}}"""462 unmodified lines463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527462 unmodified linesmargin: 0 auto !important;justify-content: center !important;gap: 8px !important;min-height: 150px !important;}.centered-examples .thumb {height: 100px !important;width: 100px !important;object-fit: cover !important;margin: 5px !important;}/* Universal solution - targets any element with both fixed-height and svelte classes */[class*="fixed-height"][class*="svelte-"] {min-height: 0 !important;max-height: 200px !important;height: auto !important;overflow-y: auto !important;}/* More specific for grid-wrap containers */[class*="grid-wrap"][class*="svelte-"][class*="fixed-height"] {min-height: 0 !important;max-height: 200px !important;height: auto !important;overflow-y: auto !important;}/* Target gallery containers specifically */#my_media_gallery [class*="grid-wrap"] {min-height: 0 !important;max-height: 200px !important;height: auto !important;overflow-y: auto !important;}/* Media query version */@media (min-width: 1280px) {[class*="fixed-height"][class*="svelte-"] {min-height: 0 !important;max-height: 200px !important;height: auto !important;}[class*="grid-wrap"][class*="svelte-"][class*="fixed-height"] {min-height: 0 !important;max-height: 200px !important;height: auto !important;}}/* Fallback with even higher specificity */div[class*="fixed-height"][class*="svelte-"]:not([style*="min-height"]) {min-height: 0 !important;}/* Target the specific gallery by ID */#my_media_gallery div[class*="grid-wrap"] {min-height: 0 !important;max-height: 200px !important;height: auto !important;overflow-y: auto !important;}"""
app.py+51-14