boardman7 commited on
Commit
4db6206
·
verified ·
1 Parent(s): 243e9c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -9
app.py CHANGED
@@ -517,15 +517,19 @@ def run_pipeline(text, files):
517
  return df_display, reply_text
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,9 +546,10 @@ CSS = """
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,7 +564,7 @@ CSS = """
559
  .table-wrap thead th {
560
  position: sticky;
561
  top: 0;
562
- background: #fafafa;
563
  z-index: 2;
564
  }
565
 
@@ -583,6 +588,7 @@ CSS = """
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
 
 
517
  return df_display, reply_text
518
 
519
 
520
+
521
  CSS = """
522
+ /* Fullscreen overlay: outer container not scrollable; inner content-wrap scrolls */
523
  #overlay, #overlay_reply {
524
+ position: fixed !important;
525
+ inset: 0 !important;
526
+ background: #ffffff !important;
527
+ z-index: 9999 !important;
528
+ display: flex;
529
+ flex-direction: column;
530
  padding: 16px;
531
+ gap: 12px;
532
+ overflow: hidden;
533
  }
534
 
535
  /* Top toolbar (title + close) sticky */
 
546
  justify-content: space-between;
547
  }
548
 
549
+ /* Scroll containers */
550
  .table-wrap, .reply-wrap {
551
+ flex: 1;
552
+ min-height: 0;
553
  overflow: auto;
554
  border: 1px solid #e5e7eb;
555
  padding: 8px;
 
564
  .table-wrap thead th {
565
  position: sticky;
566
  top: 0;
567
+ background: #fafafa;
568
  z-index: 2;
569
  }
570
 
 
588
 
589
 
590
 
591
+
592
  with gr.Blocks(title="Email Reply", css=CSS) as demo:
593
  gr.HTML("<h1 style='text-align:center;margin:0;'>Email Reply</h1>")
594