ginipick commited on
Commit
a7814b2
ยท
verified ยท
1 Parent(s): 3002f93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -5
app.py CHANGED
@@ -169,14 +169,17 @@ def create_ui():
169
  width: 100% !important;
170
  margin-top: 5px !important;
171
  }
172
- #usage-guide {
173
- height: 300px;
174
  overflow-y: auto;
175
  }
176
  #app-py-content {
177
  height: auto;
178
  max-height: none;
179
  }
 
 
 
180
  """
181
 
182
  with gr.Blocks(css=css, theme="Nymbo/Nymbo_Theme") as demo:
@@ -193,7 +196,8 @@ def create_ui():
193
  space_rows.append((space_row, button, space))
194
 
195
  with gr.Column(scale=1):
196
- info_output = gr.Textbox(label="Space ์ •๋ณด ๋ฐ ์š”์•ฝ", lines=20)
 
197
  url_state = gr.State("")
198
  last_url_state = gr.State("")
199
 
@@ -201,8 +205,12 @@ def create_ui():
201
  refresh_button = gr.Button("๐Ÿ”„ ์ƒˆ๋กœ๊ณ ์นจ", elem_id="refresh-button")
202
  manual_button = gr.Button("์„ ํƒ ์„œ๋น„์Šค ๋ฉ”๋‰ด์–ผ", elem_id="manual-button")
203
 
204
- usage_guide = gr.Textbox(label="์‚ฌ์šฉ ๋ฐฉ๋ฒ•", elem_id="usage-guide", visible=False, lines=20)
205
- app_py_content = gr.Code(language="python", label="๋ฉ”์ธ ์†Œ์Šค์ฝ”๋“œ", elem_id="app-py-content")
 
 
 
 
206
  update_trigger = gr.Button("Update Screenshot", visible=False)
207
 
208
  for _, button, space in space_rows:
 
169
  width: 100% !important;
170
  margin-top: 5px !important;
171
  }
172
+ #info-output, #usage-guide, #app-py-content {
173
+ max-height: 300px;
174
  overflow-y: auto;
175
  }
176
  #app-py-content {
177
  height: auto;
178
  max-height: none;
179
  }
180
+ .output-box {
181
+ margin-bottom: 20px;
182
+ }
183
  """
184
 
185
  with gr.Blocks(css=css, theme="Nymbo/Nymbo_Theme") as demo:
 
196
  space_rows.append((space_row, button, space))
197
 
198
  with gr.Column(scale=1):
199
+ with gr.Box(elem_classes="output-box"):
200
+ info_output = gr.Textbox(label="Space ์ •๋ณด ๋ฐ ์š”์•ฝ", elem_id="info-output", lines=10, max_lines=20)
201
  url_state = gr.State("")
202
  last_url_state = gr.State("")
203
 
 
205
  refresh_button = gr.Button("๐Ÿ”„ ์ƒˆ๋กœ๊ณ ์นจ", elem_id="refresh-button")
206
  manual_button = gr.Button("์„ ํƒ ์„œ๋น„์Šค ๋ฉ”๋‰ด์–ผ", elem_id="manual-button")
207
 
208
+ with gr.Box(elem_classes="output-box"):
209
+ usage_guide = gr.Textbox(label="์‚ฌ์šฉ ๋ฐฉ๋ฒ•", elem_id="usage-guide", visible=False, lines=10, max_lines=20)
210
+
211
+ with gr.Box(elem_classes="output-box"):
212
+ app_py_content = gr.Code(language="python", label="๋ฉ”์ธ ์†Œ์Šค์ฝ”๋“œ", elem_id="app-py-content", lines=20, max_lines=None)
213
+
214
  update_trigger = gr.Button("Update Screenshot", visible=False)
215
 
216
  for _, button, space in space_rows: