From d12a0f8ab6454a42c9c923ed9e83f2cc388229f9 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 17 May 2026 02:39:14 -0700 Subject: Fix shortcut iframe height --- app.py | 72 +++++++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 43 insertions(+), 29 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 8874b70..c40ca96 100644 --- a/app.py +++ b/app.py @@ -315,6 +315,19 @@ button[kind="secondary"]:hover { margin-bottom: -0.5rem !important; } +.st-key-prism_shortcuts iframe { + display: block !important; + height: 1px !important; +} + +.st-key-prism_shortcuts { + height: 0 !important; + min-height: 0 !important; + overflow: hidden !important; + margin: 0 !important; + padding: 0 !important; +} + /* ── Tabs ───────────────────────────────────────────────────────────────── */ .stTabs [data-baseweb="tab-list"] { background: var(--ink-2) !important; @@ -900,35 +913,36 @@ with st.container(key="market_bar_sticky"): st.divider() # ── ⌘K / Ctrl+K shortcut — focuses top-bar ticker search ───────────────────── -st.iframe( - "", - height=0, -) +with st.container(key="prism_shortcuts"): + st.iframe( + "", + height=1, + ) # ── Main Content ────────────────────────────────────────────────────────────── -- cgit v1.3-2-g0d8e