fix(insights): preserve compact period selector width

This commit is contained in:
ahmadalguydi committed 2026-08-12 22:07:35 +03:00
1 parent aaebb62758
commit b5acb01833
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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;}
+1
View File
@@ -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