MrDrmm commited on
Commit
4e58a42
·
verified ·
1 Parent(s): d3b036b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -75,7 +75,7 @@ body {
75
  padding: 0;
76
  font-family: Arial, sans-serif;
77
  height: 100vh;
78
- overflow-y: auto;
79
  }
80
 
81
  .gradio-container {
@@ -88,7 +88,7 @@ body {
88
  max-width: 300px;
89
  margin: 20px auto;
90
  display: block;
91
- min-height: 100vh;
92
  }
93
 
94
  .app_title {
@@ -216,11 +216,11 @@ body {
216
 
217
  @media (max-width: 320px) {
218
  .gradio-container {
219
- width: 50%;
220
- margin: 0;
221
  padding: 10px;
222
  }
223
- .custom_textbox,.custom_image,.custom_checkbox_group {
224
  width: 100%;
225
  box-sizing: border-box;
226
  }
@@ -230,10 +230,5 @@ body {
230
  with gr.Blocks(css=custom_css) as demo:
231
  make_me()
232
 
233
-
234
  demo.queue(default_concurrency_limit=240, max_size=240)
235
  demo.launch(max_threads=400, ssr_mode=True)
236
- #https://github.com/gradio-app/gradio/issues/6339
237
- demo.launch()
238
-
239
-
 
75
  padding: 0;
76
  font-family: Arial, sans-serif;
77
  height: 100vh;
78
+ overflow-y: auto; /* Добавлено для прокрутки */
79
  }
80
 
81
  .gradio-container {
 
88
  max-width: 300px;
89
  margin: 20px auto;
90
  display: block;
91
+ min-height: auto; /* Исправлено */
92
  }
93
 
94
  .app_title {
 
216
 
217
  @media (max-width: 320px) {
218
  .gradio-container {
219
+ width: 90%; /* Исправлено */
220
+ margin: 0 auto;
221
  padding: 10px;
222
  }
223
+ .custom_textbox, .custom_image, .custom_checkbox_group {
224
  width: 100%;
225
  box-sizing: border-box;
226
  }
 
230
  with gr.Blocks(css=custom_css) as demo:
231
  make_me()
232
 
 
233
  demo.queue(default_concurrency_limit=240, max_size=240)
234
  demo.launch(max_threads=400, ssr_mode=True)