From 0fa49b840772af89eb9b17fd76925422bfe06432 Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Tue, 1 Sep 2026 01:55:12 -0400 Subject: [PATCH] fix(map): NEWS ticker fills 32px news-only dock .ticker stayed at height:50% after MKT was hidden, leaving an empty half-bar. .dock.news-only .ticker is now 100% of the 32px dock. --- app/static/index.html | 1 + tests/test_hud_chrome.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/app/static/index.html b/app/static/index.html index da65fbf..fdc1588 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -682,6 +682,7 @@ .ticker.news .tick-label { background: var(--cyan); color: #02131c; } .ticker.market[hidden] { display: none !important; } .dock.news-only { height: 32px; } + .dock.news-only .ticker { height: 100%; } .tick-label .st { animation: pulse 1.6s infinite; } .tick-wrap { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%); diff --git a/tests/test_hud_chrome.py b/tests/test_hud_chrome.py index 210cdbc..9be2d5d 100644 --- a/tests/test_hud_chrome.py +++ b/tests/test_hud_chrome.py @@ -83,6 +83,14 @@ def test_market_ticker_hidden_no_poll(): assert "setInterval" not in init +def test_news_ticker_fills_news_only_dock(): + css = HTML.split("", 1)[0] + compact = css.replace(" ", "").replace("\n", "") + assert ".dock.news-only{height:32px;}" in compact + assert ".dock.news-only.ticker{height:100%;}" in compact + assert ".ticker{display:flex;align-items:stretch;height:50%;" in compact + + def test_news_pins_are_circle_markers(): js = HTML.split("async function loadNewsPins", 1)[1].split("function refreshLiveOverlays", 1)[0] assert "L.circleMarker" in js