Jahnavibh Claude commited on
Commit
6183273
·
1 Parent(s): 354b6f9

Apply research-based fix: Use SR's exact margin pattern

Browse files

Research findings:
- SR uses margin-left/right: auto (54 \!important declarations)
- Our demos used margin: 0 auto (97-119 \!important declarations)
- Issue: CSS conflicts between heavy custom styling and Gradio's layout system

Solution: Match SR's proven margin pattern exactly to avoid layout conflicts.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -144,7 +144,8 @@ with gr.Blocks(
144
  }
145
  .gradio-container {
146
  max-width: 1200px !important;
147
- margin: 0 auto !important;
 
148
  background-color: #fafafa !important;
149
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif !important;
150
  }
 
144
  }
145
  .gradio-container {
146
  max-width: 1200px !important;
147
+ margin-left: auto !important;
148
+ margin-right: auto !important;
149
  background-color: #fafafa !important;
150
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif !important;
151
  }