boardman7 commited on
Commit
243e9c4
·
verified ·
1 Parent(s): 9b8bcfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -13
app.py CHANGED
@@ -518,17 +518,14 @@ def run_pipeline(text, files):
518
 
519
 
520
  CSS = """
521
- /* Fullscreen overlay: outer container not scrollable; inner content-wrap scrolls */
522
  #overlay, #overlay_reply {
523
- position: fixed !important;
524
- inset: 0 !important;
525
- background: #ffffff !important;
526
- z-index: 9999 !important;
527
- display: flex;
528
- flex-direction: column;
529
  padding: 16px;
530
- gap: 12px;
531
- overflow: hidden;
532
  }
533
 
534
  /* Top toolbar (title + close) sticky */
@@ -545,10 +542,9 @@ CSS = """
545
  justify-content: space-between;
546
  }
547
 
548
- /* Scroll containers */
549
  .table-wrap, .reply-wrap {
550
- flex: 1;
551
- min-height: 0;
552
  overflow: auto;
553
  border: 1px solid #e5e7eb;
554
  padding: 8px;
@@ -563,7 +559,7 @@ CSS = """
563
  .table-wrap thead th {
564
  position: sticky;
565
  top: 0;
566
- background: #fafafa;
567
  z-index: 2;
568
  }
569
 
@@ -586,6 +582,7 @@ CSS = """
586
  """
587
 
588
 
 
589
  with gr.Blocks(title="Email Reply", css=CSS) as demo:
590
  gr.HTML("<h1 style='text-align:center;margin:0;'>Email Reply</h1>")
591
 
 
518
 
519
 
520
  CSS = """
521
+ /* Fullscreen overlay: let Gradio control visibility; don't set display here */
522
  #overlay, #overlay_reply {
523
+ position: fixed;
524
+ inset: 0;
525
+ background: #ffffff;
526
+ z-index: 9999;
 
 
527
  padding: 16px;
528
+ /* do NOT set display; avoid !important to prevent overriding visible=False */
 
529
  }
530
 
531
  /* Top toolbar (title + close) sticky */
 
542
  justify-content: space-between;
543
  }
544
 
545
+ /* Scroll containers inside overlays */
546
  .table-wrap, .reply-wrap {
547
+ height: calc(100vh - 72px); /* approx: toolbar + paddings; adjust if needed */
 
548
  overflow: auto;
549
  border: 1px solid #e5e7eb;
550
  padding: 8px;
 
559
  .table-wrap thead th {
560
  position: sticky;
561
  top: 0;
562
+ background: #fafafa;
563
  z-index: 2;
564
  }
565
 
 
582
  """
583
 
584
 
585
+
586
  with gr.Blocks(title="Email Reply", css=CSS) as demo:
587
  gr.HTML("<h1 style='text-align:center;margin:0;'>Email Reply</h1>")
588