config modal: server-side settings (budget, anchor, bar width), removed localStorage

This commit is contained in:
Meleki committed 2026-02-23 06:55:40 +01:00
1 parent 59c492c04f
commit 6666129dfa
5 files changed
+157 -57

No files matched your search

+52 -16
View File
@@ -38,22 +38,17 @@ header > * { flex-shrink: 0; }
header h1 { font-size: 1.1rem; font-weight: 600; color: var(--accent); }
#anchor-config {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.8rem;
color: var(--muted);
}
#anchor-config select {
background: var(--surface);
#btn-config {
background: var(--border);
color: var(--text);
border: 1px solid var(--border);
border-radius: 4px;
padding: 2px 4px;
font-size: 0.8rem;
border: none;
padding: 5px;
border-radius: 6px;
cursor: pointer;
transition: background 0.15s, color 0.15s;
line-height: 1;
}
#btn-config:hover { background: var(--accent) }
#btn-sync {
background: var(--border);
@@ -77,7 +72,7 @@ header h1 { font-size: 1.1rem; font-weight: 600; color: var(--accent); }
}
#summary .val { color: var(--text); font-weight: 600; }
#summary .cost { color: var(--green); font-weight: 700; font-size: 1rem; }
#summary .cost { color: var(--green); font-weight: 700; }
#toolbar {
padding: 10px 24px;
@@ -329,7 +324,7 @@ header h1 { font-size: 1.1rem; font-weight: 600; color: var(--accent); }
position: relative;
}
#modal-close {
#modal-close, #config-close {
position: absolute; top: 12px; right: 14px;
background: none; border: none;
color: var(--muted); font-size: 1.2rem; cursor: pointer;
@@ -448,6 +443,47 @@ header h1 { font-size: 1.1rem; font-weight: 600; color: var(--accent); }
margin-top: 8px;
}
/* Config modal */
.config-box { max-width: 420px; }
.config-box h2 { font-size: 1rem; margin-bottom: 16px; color: var(--accent); }
.config-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px 16px;
align-items: center;
}
.config-grid label {
font-size: 0.82rem;
color: var(--muted);
}
.config-grid input,
.config-grid select {
background: var(--bg);
color: var(--text);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 10px;
font-size: 0.85rem;
}
.cfg-save-btn {
margin-top: 20px;
width: 100%;
padding: 8px;
background: var(--accent);
color: #fff;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
transition: opacity 0.15s;
}
.cfg-save-btn:hover { opacity: 0.85; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }