Tabbed UI, browse caching, and bottom mini player

- Convert stacked sections to tabbed interface (Player, Browser, Actions, Scripts, Callbacks) with localStorage persistence
- Add in-memory directory listing cache (5-min TTL) with nocache bypass for refresh
- Defer stat()/duration calls to paginated items only for faster browse
- Move mini player from top to bottom with footer padding fix
- Always show scrollbar to prevent layout shift between tabs
- Add tab localization keys (en/ru)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 02:34:29 +03:00
parent 8db40d3ee9
commit 98a33bca54
7 changed files with 237 additions and 55 deletions

View File

@@ -30,6 +30,10 @@
box-sizing: border-box;
}
html {
overflow-y: scroll;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
background: var(--bg-primary);
@@ -144,6 +148,72 @@
color: var(--text-primary);
}
/* Tab Bar */
.tab-bar {
display: flex;
gap: 0.25rem;
margin-bottom: 1.5rem;
padding: 0.25rem;
background: var(--bg-secondary);
border-radius: 10px;
border: 1px solid var(--border);
}
.tab-btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
padding: 0.6rem 0.5rem;
background: transparent;
border: none;
border-radius: 8px;
color: var(--text-muted);
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
width: auto;
height: auto;
}
.tab-btn:hover {
color: var(--text-primary);
background: var(--bg-tertiary) !important;
transform: none !important;
}
.tab-btn.active {
color: var(--accent);
background: var(--bg-tertiary);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.tab-btn svg {
width: 16px;
height: 16px;
flex-shrink: 0;
}
[data-tab-content] {
display: none;
}
[data-tab-content].active {
display: block;
}
@media (max-width: 600px) {
.tab-btn span {
display: none;
}
.tab-btn {
padding: 0.6rem;
}
}
.player-container {
background: var(--bg-secondary);
border-radius: 12px;
@@ -341,7 +411,6 @@
background: var(--bg-secondary);
border-radius: 12px;
padding: 2rem;
margin-top: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
@@ -407,7 +476,6 @@
background: var(--bg-secondary);
border-radius: 12px;
padding: 2rem;
margin-top: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
@@ -862,11 +930,11 @@
/* Mini Player (Sticky) */
.mini-player {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
border-top: 1px solid var(--border);
padding: 0.75rem 1rem;
display: flex;
align-items: center;
@@ -874,11 +942,11 @@
z-index: 1000;
transform: translateY(0);
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}
.mini-player.hidden {
transform: translateY(-100%);
transform: translateY(100%);
opacity: 0;
pointer-events: none;
}
@@ -1087,6 +1155,11 @@
border-top: 1px solid var(--border);
color: var(--text-secondary);
font-size: 0.875rem;
transition: padding-bottom 0.3s ease-in-out;
}
body.mini-player-visible footer {
padding-bottom: 70px;
}
footer a {
@@ -1113,7 +1186,6 @@
background: var(--bg-secondary);
border-radius: 12px;
padding: 2rem;
margin-top: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}