diff options
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 35 |
1 files changed, 6 insertions, 29 deletions
@@ -404,29 +404,9 @@ hr { ::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--ink-4); } -/* ── Watch toggle button ────────────────────────────────────────────────── */ -[data-testid="stSidebar"] .psm-watch-toggle button { - background: var(--ink-2) !important; - color: var(--fg-3) !important; - border: 1px solid var(--line-2) !important; - border-radius: 2px !important; - font-family: var(--font-sans) !important; - font-size: 0.6875rem !important; - font-weight: 500 !important; - letter-spacing: 0.06em !important; - text-transform: uppercase !important; - padding: 3px 8px !important; - margin-top: 6px !important; -} - -[data-testid="stSidebar"] .psm-watch-toggle button:hover { - background: var(--ink-3) !important; - border-color: var(--line-3) !important; - color: var(--fg-1) !important; -} - -[data-testid="stSidebar"] .psm-watch-toggle button p { - color: inherit !important; +/* Hide the watchlist click receiver input */ +[data-testid="stSidebar"] [data-testid="stTextInput"]:has(input[aria-label="wl_click_receiver"]) { + display: none !important; } /* ── Ticker Header Band ──────────────────────────────────────────────────── */ @@ -762,18 +742,15 @@ with st.sidebar: if ticker: in_watch = ticker in st.session_state["watchlist"] label = "— Remove from watchlist" if in_watch else "+ Save to watchlist" - st.markdown('<div class="psm-watch-toggle">', unsafe_allow_html=True) if st.button(label, key="watch_toggle", use_container_width=True): if in_watch: st.session_state["watchlist"].remove(ticker) else: - if ( - ticker not in st.session_state["watchlist"] - and len(st.session_state["watchlist"]) < 10 - ): + if len(st.session_state["watchlist"]) >= 10: + st.toast("Watchlist full — 10 tickers maximum") + else: st.session_state["watchlist"].append(ticker) st.rerun() - st.markdown("</div>", unsafe_allow_html=True) # ── Watchlist ────────────────────────────────────────────────────────── render_watchlist() |
