ZhouChuYue commited on
Commit
5ff879c
Β·
1 Parent(s): 8a8bccb
Files changed (1) hide show
  1. app.py +16 -13
app.py CHANGED
@@ -323,26 +323,27 @@ label {
323
 
324
  /* Fixed height textbox with scrollbar */
325
  .gr-textbox textarea {
326
- max-height: 300px !important;
327
  overflow-y: auto !important;
328
  resize: vertical !important;
329
  }
330
 
 
 
 
 
 
 
 
331
  /* Markdown box styling */
332
  .markdown-box {
333
  background: rgba(255, 255, 255, 0.95) !important;
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 * {
@@ -471,18 +472,20 @@ with gr.Blocks(title="UltraData Math Parser") as demo:
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
  )
487
 
488
  # Event handlers
 
323
 
324
  /* Fixed height textbox with scrollbar */
325
  .gr-textbox textarea {
 
326
  overflow-y: auto !important;
327
  resize: vertical !important;
328
  }
329
 
330
+ /* Output textbox styling - match markdown box height */
331
+ .output-textbox textarea {
332
+ min-height: 560px !important;
333
+ max-height: 580px !important;
334
+ overflow-y: auto !important;
335
+ }
336
+
337
  /* Markdown box styling */
338
  .markdown-box {
339
  background: rgba(255, 255, 255, 0.95) !important;
340
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
341
  border-radius: 8px !important;
342
  padding: 16px !important;
343
+ min-height: 580px !important;
344
+ max-height: 580px !important;
 
 
 
 
 
345
  overflow-y: auto !important;
346
+ color: #1a1a2e !important;
347
  }
348
 
349
  .markdown-box * {
 
472
  with gr.TabItem("πŸ“„ Plain Text"):
473
  text_output = gr.Textbox(
474
  label="Plain Text (w3m rendered)",
475
+ lines=25,
476
+ max_lines=30,
477
  interactive=False,
478
  autoscroll=False,
479
+ elem_classes=["output-textbox"],
480
  )
481
  with gr.TabItem("πŸ“ Raw HTML"):
482
  html_output = gr.Textbox(
483
  label="Extracted HTML",
484
+ lines=25,
485
+ max_lines=30,
486
  interactive=False,
487
  autoscroll=False,
488
+ elem_classes=["output-textbox"],
489
  )
490
 
491
  # Event handlers