DanielRegaladoCardoso commited on
Commit
984d23c
·
verified ·
1 Parent(s): 0293614

Fluid layout (no max-width) to remove dark side bars

Browse files
Files changed (1) hide show
  1. app.py +14 -10
app.py CHANGED
@@ -85,28 +85,32 @@ THEME_CSS = """
85
  }
86
 
87
  /* Gradio container reset (Gradio 5 selectors) */
88
- gradio-app, .gradio-container, .main, .app, .contain, .wrap {
 
89
  background: var(--surface) !important;
90
  color: var(--ink) !important;
91
  font-family: var(--font) !important;
92
  }
 
 
93
  .gradio-container {
94
- max-width: 1600px !important;
95
  width: 100% !important;
96
- margin: 0 auto !important;
97
- padding: 32px 40px 60px !important;
98
- min-height: 920px !important;
99
  box-sizing: border-box;
100
  }
101
 
102
- /* Two-column rectangular layout — 16:9-ish aspect, fixed feel */
103
  .split-layout {
104
  display: grid;
105
- grid-template-columns: minmax(360px, 460px) 1fr;
106
- gap: 36px;
107
- align-items: start;
108
- min-height: 820px;
109
  }
 
110
  @media (max-width: 900px) {
111
  .split-layout { grid-template-columns: 1fr; gap: 22px; min-height: auto; }
112
  .gradio-container { padding: 24px 18px 60px !important; min-height: auto !important; }
 
85
  }
86
 
87
  /* Gradio container reset (Gradio 5 selectors) */
88
+ html, body, gradio-app, .gradio-container, .main, .app, .contain, .wrap,
89
+ gradio-app > .main, gradio-app .gradio-container {
90
  background: var(--surface) !important;
91
  color: var(--ink) !important;
92
  font-family: var(--font) !important;
93
  }
94
+ /* Fluid container — no max-width, fills the entire iframe to remove
95
+ the dark side bars that appeared when content was capped at 1600px. */
96
  .gradio-container {
97
+ max-width: none !important;
98
  width: 100% !important;
99
+ margin: 0 !important;
100
+ padding: 28px 48px 48px !important;
101
+ min-height: 100vh !important;
102
  box-sizing: border-box;
103
  }
104
 
105
+ /* Two-column rectangular layout */
106
  .split-layout {
107
  display: grid;
108
+ grid-template-columns: minmax(360px, 440px) 1fr;
109
+ gap: 32px;
110
+ align-items: stretch;
111
+ min-height: 720px;
112
  }
113
+
114
  @media (max-width: 900px) {
115
  .split-layout { grid-template-columns: 1fr; gap: 22px; min-height: auto; }
116
  .gradio-container { padding: 24px 18px 60px !important; min-height: auto !important; }