Update app.py
Browse files462 unmodified lines4634644654664674684694701 unmodified line472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553462 unmodified linesmargin: 0 auto !important;justify-content: center !important;gap: 8px !important;}.centered-examples .thumb {height: 100px !important;width: 100px !important;1 unmodified linemargin: 5px !important;}/* Fix for gallery container - let it size to content */#my_media_gallery {height: auto !important;min-height: auto !important;max-height: none !important;}/* Target the gallery grid wrapper specifically */#my_media_gallery [class*="grid-wrap"],#my_media_gallery .grid-wrap {height: auto !important;min-height: auto !important;max-height: none !important;flex: none !important;display: grid !important;grid-template-columns: repeat(6, 1fr) !important;grid-auto-rows: min-content !important;gap: 8px !important;padding: 8px !important;}/* Override any fixed-height constraints */[class*="fixed-height"][class*="svelte-"] {height: auto !important;min-height: auto !important;max-height: none !important;flex: none !important;}/* Specific targeting for the gallery's parent containers */#my_media_gallery .svelte-vt1mxs,#my_media_gallery [class*="svelte-vt1mxs"] {height: auto !important;min-height: auto !important;flex: none !important;}/* Ensure gallery doesn't shrink on wide screens */@media (min-width: 1280px) {#my_media_gallery {height: auto !important;min-height: auto !important;max-height: none !important;flex: none !important;}#my_media_gallery [class*="grid-wrap"],#my_media_gallery .grid-wrap {height: auto !important;min-height: auto !important;max-height: none !important;flex: none !important;}[class*="fixed-height"][class*="svelte-"] {height: auto !important;min-height: auto !important;max-height: none !important;flex: none !important;}}/* Force grid layout for proper image arrangement */#my_media_gallery [class*="grid-wrap"] > div {display: grid !important;grid-template-columns: repeat(6, minmax(100px, 1fr)) !important;gap: 8px !important;width: 100% !important;}/* Ensure thumbnails maintain proper size */#my_media_gallery img,#my_media_gallery .thumbnail img {width: 100px !important;height: 100px !important;object-fit: cover !important;}"""462 unmodified lines4634644654664674684694701 unmodified line472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527462 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;1 unmodified linemargin: 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+32-58