ZhouChuYue commited on
Commit
8a8bccb
Β·
1 Parent(s): f3602b9
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -334,12 +334,17 @@ label {
334
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
335
  border-radius: 8px !important;
336
  padding: 16px !important;
337
- min-height: 280px !important;
338
- max-height: 300px !important;
339
- overflow-y: auto !important;
340
  color: #1a1a2e !important;
341
  }
342
 
 
 
 
 
 
 
343
  .markdown-box * {
344
  color: #1a1a2e !important;
345
  }
@@ -466,16 +471,16 @@ with gr.Blocks(title="UltraData Math Parser") as demo:
466
  with gr.TabItem("πŸ“„ Plain Text"):
467
  text_output = gr.Textbox(
468
  label="Plain Text (w3m rendered)",
469
- lines=12,
470
- max_lines=12,
471
  interactive=False,
472
  autoscroll=False,
473
  )
474
  with gr.TabItem("πŸ“ Raw HTML"):
475
  html_output = gr.Textbox(
476
  label="Extracted HTML",
477
- lines=12,
478
- max_lines=12,
479
  interactive=False,
480
  autoscroll=False,
481
  )
 
334
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
335
  border-radius: 8px !important;
336
  padding: 16px !important;
337
+ height: 500px !important;
338
+ overflow: hidden !important;
 
339
  color: #1a1a2e !important;
340
  }
341
 
342
+ .markdown-box > div {
343
+ height: 100% !important;
344
+ overflow-y: auto !important;
345
+ overflow-x: hidden !important;
346
+ }
347
+
348
  .markdown-box * {
349
  color: #1a1a2e !important;
350
  }
 
471
  with gr.TabItem("πŸ“„ Plain Text"):
472
  text_output = gr.Textbox(
473
  label="Plain Text (w3m rendered)",
474
+ lines=18,
475
+ max_lines=25,
476
  interactive=False,
477
  autoscroll=False,
478
  )
479
  with gr.TabItem("πŸ“ Raw HTML"):
480
  html_output = gr.Textbox(
481
  label="Extracted HTML",
482
+ lines=18,
483
+ max_lines=25,
484
  interactive=False,
485
  autoscroll=False,
486
  )