diff options
| author | Tyler <tyler@tylerhoang.xyz> | 2026-05-17 02:38:03 -0700 |
|---|---|---|
| committer | Tyler <tyler@tylerhoang.xyz> | 2026-05-17 02:38:03 -0700 |
| commit | 246ab5b6d013ea337ae36fca8e1649a7e18abe8a (patch) | |
| tree | ed3160904bcd461dcc876d651208b84aab37e88b /app.py | |
| parent | 119eaf8afe9924ce0e5eef62f4a1546caf0c4bab (diff) | |
Replace deprecated component HTML embeds
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -701,7 +701,6 @@ from components.news import render_news from components.options import render_options from components.macro import render_macro from services.data_service import get_company_info, search_tickers, get_latest_price -import streamlit.components.v1 as components if "ticker" not in st.session_state: @@ -804,7 +803,7 @@ with st.sidebar: "tick(); setInterval(tick, 1000);" "</script>" ) - components.html(_clock_html, height=32, scrolling=False) + st.iframe(_clock_html, height=32) # ── Exit to landing page ────────────────────────────────────────────── if st.session_state.get("ticker"): @@ -901,7 +900,7 @@ with st.container(key="market_bar_sticky"): st.divider() # ── ⌘K / Ctrl+K shortcut — focuses top-bar ticker search ───────────────────── -components.html( +st.iframe( "<script>" "(function() {" " var placeholder = 'Search ticker, company, or filing…';" @@ -929,7 +928,6 @@ components.html( "}());" "</script>", height=0, - scrolling=False, ) # ── Main Content ────────────────────────────────────────────────────────────── |
