Fix frontend hang: remove .gradio-container max-width (caused infinite ResizeObserver measuring loop, stuck on loading spinner)
Browse files- src/ui/theme.py +3 -1
src/ui/theme.py
CHANGED
|
@@ -39,7 +39,9 @@ theme = gr.themes.Base(
|
|
| 39 |
CSS = """
|
| 40 |
:root { --ink:#1f3d2b; --green:#2f7d4f; --line:#d8cdb6; --red:#b23a48; --gold:#b8860b; }
|
| 41 |
|
| 42 |
-
|
|
|
|
|
|
|
| 43 |
|
| 44 |
/* Masthead */
|
| 45 |
#pa-masthead {
|
|
|
|
| 39 |
CSS = """
|
| 40 |
:root { --ink:#1f3d2b; --green:#2f7d4f; --line:#d8cdb6; --red:#b23a48; --gold:#b8860b; }
|
| 41 |
|
| 42 |
+
/* NOTE: do NOT set max-width on .gradio-container — in Gradio 6 it triggers an
|
| 43 |
+
infinite ResizeObserver "measuring" loop that hangs the whole app on the loading
|
| 44 |
+
spinner. Width is left at Gradio's default. */
|
| 45 |
|
| 46 |
/* Masthead */
|
| 47 |
#pa-masthead {
|