Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -221,6 +221,7 @@ html, body {
|
|
221 |
margin: 0;
|
222 |
padding: 0;
|
223 |
overflow-x: hidden; /* Prevent horizontal scrollbar if content overflows */
|
|
|
224 |
}
|
225 |
|
226 |
body {
|
@@ -233,43 +234,39 @@ body {
|
|
233 |
|
234 |
.gradio-container {
|
235 |
/* Apply the semi-transparent black overlay from your inner div */
|
236 |
-
background-color: rgba(0, 0, 0, 0.60) !important;
|
237 |
-
|
238 |
-
/*
|
239 |
-
min-height:
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
display: flex; /* Helps in making content fill vertical space */
|
241 |
flex-direction: column; /* Stacks content vertically within the container */
|
242 |
-
|
243 |
-
/* --- ADD/CHANGE THESE LINES FOR FULL WIDTH --- */
|
244 |
-
max-width: unset !important; /* Removes the 1200px max-width constraint */
|
245 |
-
width: 100% !important; /* Ensures it always takes full available width */
|
246 |
-
margin: 0 !important; /* Removes auto margin, pushes it to edges */
|
247 |
-
border-radius: 0 !important; /* Remove border-radius if you want sharp corners for full width */
|
248 |
-
/* --- END ADD/CHANGE --- */
|
249 |
}
|
250 |
|
251 |
.header-container {
|
252 |
-
width: 100%;
|
253 |
height: 160px;
|
254 |
position: relative;
|
255 |
display: flex; /* For centering the h1 */
|
256 |
flex-direction: column; /* For vertical alignment */
|
257 |
justify-content: center; /* Centers the h1 vertically */
|
258 |
align-items: center; /* Centers the h1 horizontally */
|
259 |
-
padding: 2rem 1rem; /*
|
260 |
-
overflow: hidden;
|
261 |
-
border-bottom-left-radius: 1rem;
|
262 |
-
border-bottom-right-radius: 1rem;
|
263 |
background: linear-gradient(to bottom, rgba(30,18,51,0.9) 0%, rgba(30,18,51,0.7) 60%, rgba(0,0,0,0) 100%);
|
264 |
box-sizing: border-box; /* Include padding in the element's total width/height */
|
265 |
|
266 |
-
/*
|
267 |
-
margin-top: -2rem !important; /* Compensate for gradio-container's top padding */
|
268 |
-
margin-left: -2rem !important; /* Compensate for gradio-container's left padding */
|
269 |
-
margin-right: -2rem !important; /* Compensate for gradio-container's right padding */
|
270 |
-
width: calc(100% + 4rem) !important; /* Adjust width to cover padding (2rem left + 2rem right) */
|
271 |
}
|
272 |
|
|
|
273 |
label, .gr-checkbox-label span { /* Target labels and checkbox labels */
|
274 |
color: #E8E8E8 !important; /* Slightly brighter light gray for labels */
|
275 |
font-weight: bold !important;
|
|
|
221 |
margin: 0;
|
222 |
padding: 0;
|
223 |
overflow-x: hidden; /* Prevent horizontal scrollbar if content overflows */
|
224 |
+
width: 100vw;
|
225 |
}
|
226 |
|
227 |
body {
|
|
|
234 |
|
235 |
.gradio-container {
|
236 |
/* Apply the semi-transparent black overlay from your inner div */
|
237 |
+
background-color: rgba(0, 0, 0, 0.60) !important;
|
238 |
+
|
239 |
+
/* Make it span the full viewport */
|
240 |
+
min-height: 100vh !important; /* Forces full height */
|
241 |
+
width: 100vw !important; /* Forces full width */
|
242 |
+
margin: 0 !important; /* Remove any auto margins */
|
243 |
+
padding: 0 !important; /* IMPORTANT: Remove internal padding so header can go edge-to-edge */
|
244 |
+
border-radius: 0 !important; /* Remove rounded corners for full screen */
|
245 |
+
box-shadow: none !important; /* Remove shadow for full screen */
|
246 |
+
|
247 |
display: flex; /* Helps in making content fill vertical space */
|
248 |
flex-direction: column; /* Stacks content vertically within the container */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
}
|
250 |
|
251 |
.header-container {
|
252 |
+
width: 100%; /* Now takes 100% of the 100vw parent */
|
253 |
height: 160px;
|
254 |
position: relative;
|
255 |
display: flex; /* For centering the h1 */
|
256 |
flex-direction: column; /* For vertical alignment */
|
257 |
justify-content: center; /* Centers the h1 vertically */
|
258 |
align-items: center; /* Centers the h1 horizontally */
|
259 |
+
padding: 2rem 1rem; /* Keep padding for text inside */
|
260 |
+
overflow: hidden !important; /* Explicitly ensure overflow is hidden */
|
261 |
+
border-bottom-left-radius: 1rem;
|
262 |
+
border-bottom-right-radius: 1rem;
|
263 |
background: linear-gradient(to bottom, rgba(30,18,51,0.9) 0%, rgba(30,18,51,0.7) 60%, rgba(0,0,0,0) 100%);
|
264 |
box-sizing: border-box; /* Include padding in the element's total width/height */
|
265 |
|
266 |
+
/* Removed negative margins and calc width, as parent is now full width and has no padding */
|
|
|
|
|
|
|
|
|
267 |
}
|
268 |
|
269 |
+
|
270 |
label, .gr-checkbox-label span { /* Target labels and checkbox labels */
|
271 |
color: #E8E8E8 !important; /* Slightly brighter light gray for labels */
|
272 |
font-weight: bold !important;
|