Update media-server: UI polish and bug fixes

- Compact header and footer (reduced padding, margins, font sizes)
- Remove separator borders from header and footer
- Fix color contrast on hover states (white text on accent backgrounds)
- Fix album art not updating on track change (composite cache key)
- Slow vinyl spin animation (4s → 12s)
- Replace Add buttons with dashed-border add-cards
- Fix dialog header text color
- Make theme toggle button transparent

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 23:16:53 +03:00
parent 84b985e6df
commit 65b513ca17
3 changed files with 108 additions and 81 deletions

View File

@@ -108,16 +108,15 @@
.container {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
padding: 2rem 2rem 0.5rem;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
margin-bottom: 0.75rem;
padding-bottom: 0.5rem;
}
h1 {
@@ -148,27 +147,27 @@
}
.theme-toggle {
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.5rem;
background: transparent;
border: none;
padding: 0.3rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
width: 40px;
height: 40px;
transition: opacity 0.3s;
width: 32px;
height: 32px;
opacity: 0.7;
}
.theme-toggle:hover {
background: var(--border);
opacity: 1;
}
.theme-toggle svg {
width: 20px;
height: 20px;
fill: var(--text-primary);
width: 16px;
height: 16px;
fill: currentColor;
}
#locale-select {
@@ -176,9 +175,9 @@
border: 1px solid var(--border);
color: var(--text-primary);
border-radius: 6px;
padding: 6px 12px;
padding: 4px 8px;
cursor: pointer;
font-size: 14px;
font-size: 12px;
font-weight: 500;
transition: all 0.3s ease;
}
@@ -343,11 +342,11 @@
}
.album-art-container.vinyl.spinning #album-art {
animation: vinylSpin 4s linear infinite;
animation: vinylSpin 12s linear infinite;
}
.album-art-container.vinyl.paused #album-art {
animation: vinylSpin 4s linear infinite;
animation: vinylSpin 12s linear infinite;
animation-play-state: paused;
}
@@ -471,6 +470,7 @@
button:hover:not(:disabled) {
background: var(--accent);
color: #fff;
transform: scale(1.05);
}
@@ -487,6 +487,7 @@
button.primary:hover:not(:disabled) {
background: var(--accent-hover);
color: #fff;
transform: scale(1.1);
}
@@ -640,6 +641,7 @@
.script-btn:hover:not(:disabled) {
background: var(--accent);
border-color: var(--accent);
color: #fff;
transform: translateY(-2px);
}
@@ -657,6 +659,11 @@
font-size: 0.75rem;
color: var(--text-secondary);
text-align: center;
transition: color 0.2s;
}
.script-btn:hover:not(:disabled) .script-description {
color: rgba(255, 255, 255, 0.85);
}
.script-btn.executing {
@@ -679,28 +686,38 @@
color: var(--text-primary);
}
.script-management-header {
.add-card {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.add-script-btn {
padding: 0.5rem 1.5rem;
border-radius: 6px;
background: var(--accent);
border: none;
color: var(--text-primary);
justify-content: center;
border: 2px dashed var(--border);
border-radius: 8px;
padding: 1.5rem;
margin-top: 1rem;
cursor: pointer;
font-size: 0.875rem;
font-weight: 600;
transition: background 0.2s;
min-width: 140px;
transition: border-color 0.2s, background 0.2s;
}
.add-script-btn:hover {
background: var(--accent-hover);
.add-card:hover {
border-color: var(--text-muted);
background: var(--bg-tertiary);
}
.add-card-icon {
font-size: 1.5rem;
color: var(--text-muted);
font-weight: 300;
line-height: 1;
}
.add-card-grid {
border: 2px dashed var(--border);
background: transparent;
}
.add-card-grid:hover:not(:disabled) {
border-color: var(--text-muted);
background: var(--bg-tertiary);
}
.scripts-table {
@@ -762,12 +779,14 @@
.action-btn:hover {
background: var(--accent);
border-color: var(--accent);
color: #fff;
transform: translateY(-1px);
}
.action-btn.delete:hover {
background: var(--error);
border-color: var(--error);
color: #fff;
}
.action-buttons {
@@ -779,6 +798,7 @@
.action-btn.execute:hover {
background: #3b82f6;
border-color: #3b82f6;
color: #fff;
}
/* Execution Result Dialog */
@@ -862,6 +882,7 @@
/* Dialog Styles */
dialog {
background: var(--bg-secondary);
color: var(--text-primary);
border: 1px solid var(--border);
border-radius: 12px;
padding: 0;
@@ -882,7 +903,7 @@
.dialog-header {
padding: 1.5rem;
background: var(--bg-tertiary);
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
}
@@ -1135,9 +1156,9 @@
.clear-token-btn {
width: auto;
height: auto;
padding: 6px 12px;
padding: 4px 10px;
border-radius: 6px;
font-size: 14px;
font-size: 12px;
font-weight: 500;
background: var(--bg-tertiary);
color: var(--text-secondary);
@@ -1317,6 +1338,7 @@
.mini-control-btn:hover {
background: var(--accent);
border-color: var(--accent);
color: #fff;
transform: scale(1.05);
}
@@ -1415,11 +1437,10 @@
/* Footer */
footer {
text-align: center;
padding: 2rem 1rem;
margin-top: 3rem;
border-top: 1px solid var(--border);
color: var(--text-secondary);
font-size: 0.875rem;
padding: 0.75rem 1rem;
margin-top: 0.5rem;
color: var(--text-muted);
font-size: 0.75rem;
transition: padding-bottom 0.3s ease-in-out;
}
@@ -2092,6 +2113,7 @@
.pagination button:hover:not(:disabled) {
background: var(--accent);
border-color: var(--accent);
color: #fff;
transform: none;
}