eldinosaur commited on
Commit
779e4c8
·
verified ·
1 Parent(s): 46bfab1

Fix frontend hang: remove .gradio-container max-width (caused infinite ResizeObserver measuring loop, stuck on loading spinner)

Browse files
Files changed (1) hide show
  1. 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
- .gradio-container { max-width: 1080px !important; margin: auto !important; }
 
 
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 {