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