MRaudhatul commited on
Commit
35d8749
Β·
verified Β·
1 Parent(s): 1f19b55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -62,12 +62,25 @@ css = """
62
  /* ── reset & base ── */
63
  *, *::before, *::after { box-sizing: border-box; }
64
 
 
 
 
 
 
65
  .gradio-container {
 
 
66
  max-width: 960px !important;
67
  margin: 0 auto !important;
68
  padding: 0 12px !important;
69
  }
70
 
 
 
 
 
 
 
71
  footer { display: none !important; }
72
 
73
  /* ── title block ── */
@@ -103,7 +116,7 @@ footer { display: none !important; }
103
  min-width: 0;
104
  }
105
 
106
- /* ── stats row: wrap gracefully ── */
107
  .stats-row {
108
  display: flex;
109
  flex-wrap: wrap;
@@ -133,7 +146,7 @@ button.primary {
133
  padding: 10px 16px !important;
134
  }
135
 
136
- /* ── number/textbox labels: prevent overflow ── */
137
  label span {
138
  white-space: normal !important;
139
  word-break: break-word !important;
@@ -172,13 +185,13 @@ label span {
172
  font-size: clamp(14px, 3vw, 18px) !important;
173
  }
174
 
175
- /* ── image components: full width on mobile ── */
176
  .gr-image img {
177
  max-width: 100% !important;
178
  height: auto !important;
179
  }
180
 
181
- /* small screens: compact spacing */
182
  @media (max-width: 480px) {
183
  .gradio-container {
184
  padding: 0 8px !important;
 
62
  /* ── reset & base ── */
63
  *, *::before, *::after { box-sizing: border-box; }
64
 
65
+ html, body {
66
+ width: 100% !important;
67
+ overflow-x: hidden !important;
68
+ }
69
+
70
  .gradio-container {
71
+ min-width: unset !important;
72
+ width: 100% !important;
73
  max-width: 960px !important;
74
  margin: 0 auto !important;
75
  padding: 0 12px !important;
76
  }
77
 
78
+ /* paksa semua elemen tidak overflow */
79
+ .block, .form, .panel {
80
+ min-width: unset !important;
81
+ width: 100% !important;
82
+ }
83
+
84
  footer { display: none !important; }
85
 
86
  /* ── title block ── */
 
116
  min-width: 0;
117
  }
118
 
119
+ /* ── stats row ── */
120
  .stats-row {
121
  display: flex;
122
  flex-wrap: wrap;
 
146
  padding: 10px 16px !important;
147
  }
148
 
149
+ /* ── labels: prevent overflow ── */
150
  label span {
151
  white-space: normal !important;
152
  word-break: break-word !important;
 
185
  font-size: clamp(14px, 3vw, 18px) !important;
186
  }
187
 
188
+ /* ── image components ── */
189
  .gr-image img {
190
  max-width: 100% !important;
191
  height: auto !important;
192
  }
193
 
194
+ /* ── small screens ── */
195
  @media (max-width: 480px) {
196
  .gradio-container {
197
  padding: 0 8px !important;