Mehdi commited on
Commit
0ec5648
Β·
1 Parent(s): 2f3700c

fix: replace display:none on hidden rows with height:0 so Gradio mounts event handlers

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -58,15 +58,16 @@ body { background: #0A0F1E !important; margin: 0 !important; }
58
  box-shadow: 0 8px 32px rgba(0,0,0,0.45) !important;
59
  }
60
 
61
- /* ── Completely hide the thin-line rows (DOM still present for JS) ───────────── */
62
  #hidden-row-status,
63
  #hidden-row-question {
64
- display: none !important;
65
  height: 0 !important;
66
- overflow: hidden !important;
 
67
  margin: 0 !important;
68
  padding: 0 !important;
69
  border: none !important;
 
70
  }
71
 
72
  /* ── Force hero text to be visible (defeat Gradio color resets) ─────────────── */
 
58
  box-shadow: 0 8px 32px rgba(0,0,0,0.45) !important;
59
  }
60
 
61
+ /* ── Rows are collapsed but NOT display:none so Gradio attaches event handlers ── */
62
  #hidden-row-status,
63
  #hidden-row-question {
 
64
  height: 0 !important;
65
+ min-height: 0 !important;
66
+ overflow: visible !important;
67
  margin: 0 !important;
68
  padding: 0 !important;
69
  border: none !important;
70
+ gap: 0 !important;
71
  }
72
 
73
  /* ── Force hero text to be visible (defeat Gradio color resets) ─────────────── */