From b5acb01833b0214fb52df8266d864f9c03e81708 Mon Sep 17 00:00:00 2001 From: ahmadalguydi Date: Wed, 12 Aug 2026 22:07:35 +0300 Subject: [PATCH] fix(insights): preserve compact period selector width --- static/style.css | 2 +- tests/test_insights.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/style.css b/static/style.css index 64c54928..1231fcfa 100644 --- a/static/style.css +++ b/static/style.css @@ -2230,7 +2230,7 @@ .notes-preview-card .memory-content{max-height:420px;overflow:auto;} .field-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:5px;opacity:.8;} select{width:100%;background:var(--input-bg);border:1px solid var(--border2);border-radius:8px;color:var(--text);padding:8px 28px 8px 10px;font-size:12px;outline:none;appearance:none;margin-bottom:6px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238888aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;} - .insights-period-select{border-radius:6px;padding:6px 28px 6px 10px;font-size:12px;margin-bottom:0;} + .insights-period-select{width:auto;border-radius:6px;padding:6px 28px 6px 10px;font-size:12px;margin-bottom:0;} select:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-bg);} optgroup{color:var(--muted);font-size:11px;font-weight:700;} option{background:var(--bg);color:var(--text);padding:6px;} diff --git a/tests/test_insights.py b/tests/test_insights.py index 1b67fba0..2a2b5d68 100644 --- a/tests/test_insights.py +++ b/tests/test_insights.py @@ -177,6 +177,7 @@ def test_insights_period_select_uses_shared_chevron_styles(): assert 'id="insightsPeriod" class="insights-period-select"' in INDEX_HTML assert 'id="insightsPeriod" onchange="loadInsights()" style=' not in INDEX_HTML assert ".insights-period-select" in STYLE_CSS + assert "width:auto" in STYLE_CSS.split(".insights-period-select", 1)[1].split("}", 1)[0] assert "padding:6px 28px 6px 10px" in STYLE_CSS