aboutsummaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorTyler <tyler@tylerhoang.xyz>2026-05-17 02:38:03 -0700
committerTyler <tyler@tylerhoang.xyz>2026-05-17 02:38:03 -0700
commit246ab5b6d013ea337ae36fca8e1649a7e18abe8a (patch)
treeed3160904bcd461dcc876d651208b84aab37e88b /app.py
parent119eaf8afe9924ce0e5eef62f4a1546caf0c4bab (diff)
Replace deprecated component HTML embeds
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/app.py b/app.py
index c17dbcb..8874b70 100644
--- a/app.py
+++ b/app.py
@@ -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 ──────────────────────────────────────────────────────────────