Zaiiida commited on
Commit
eafff72
·
verified ·
1 Parent(s): 4f433e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -4
app.py CHANGED
@@ -216,14 +216,35 @@ css = """
216
  margin: 0 !important;
217
  padding: 0 !important;
218
  border: none !important;
 
 
 
 
 
 
 
 
219
  }
220
 
221
- /* Контейнер приложения */
222
  .gradio-container, .gr-app {
223
  background-color: #191a1e !important;
 
 
 
 
224
  display: flex;
225
  flex-direction: column;
226
- width: 100%;
 
 
 
 
 
 
 
 
 
 
227
  }
228
 
229
  /* Ряды и колонки */
@@ -271,7 +292,6 @@ css = """
271
  gap: 10px !important;
272
  justify-content: flex-start !important;
273
  align-items: center !important;
274
- /* Так как примеры теперь в том же контейнере, они будут автоматически подстраиваться */
275
  }
276
 
277
  .gr-examples img {
@@ -326,7 +346,6 @@ with gr.Blocks(theme=CustomTheme(), css=css) as demo:
326
  elem_classes="generate-button",
327
  )
328
 
329
- # Примеры теперь находятся прямо под кнопкой Run
330
  examples = gr.Examples(
331
  examples=example_files,
332
  inputs=input_img,
 
216
  margin: 0 !important;
217
  padding: 0 !important;
218
  border: none !important;
219
+ width: 100% !important;
220
+ min-height: 100%;
221
+ height: 100%;
222
+ box-sizing: border-box;
223
+ }
224
+
225
+ body {
226
+ overflow-x: hidden !important;
227
  }
228
 
 
229
  .gradio-container, .gr-app {
230
  background-color: #191a1e !important;
231
+ width: 100% !important;
232
+ margin: 0 !important;
233
+ padding: 0 !important;
234
+ box-sizing: border-box;
235
  display: flex;
236
  flex-direction: column;
237
+ }
238
+
239
+ /* Снятие ограничений по ширине с внутренних контейнеров */
240
+ .gr-block, .gr-box {
241
+ max-width: 100% !important;
242
+ width: 100% !important;
243
+ }
244
+
245
+ /* Если какие-то элементы имели свой фон, делаем прозрачным */
246
+ * {
247
+ background-color: transparent !important;
248
  }
249
 
250
  /* Ряды и колонки */
 
292
  gap: 10px !important;
293
  justify-content: flex-start !important;
294
  align-items: center !important;
 
295
  }
296
 
297
  .gr-examples img {
 
346
  elem_classes="generate-button",
347
  )
348
 
 
349
  examples = gr.Examples(
350
  examples=example_files,
351
  inputs=input_img,