style(sidebar): consistent scrollbar, smaller toggle button

- Scrollbar always visible (subtle), overlay mode in both states
- margin-right: 1px for slight visual separation
- Collapsed icons: padding-left 1px to compensate and stay aligned
- Toggle button: 20px diameter (was 22px)
This commit is contained in:
vicrodh committed 2026-01-24 00:11:26 -06:00
1 parent 12a3393050
commit d7805d12ee
1 file changed
+12 -25
+12 -25
View File
@@ -952,17 +952,13 @@
} }
.playlists-scroll { .playlists-scroll {
overflow-y: auto; overflow-y: overlay;
margin-right: 3px; margin-right: 1px;
min-height: 0; min-height: 0;
flex: 1; flex: 1;
} }
/* Thin scrollbar - hidden by default, visible on section hover */ /* Thin subtle scrollbar - always visible */
.playlists-scroll {
scrollbar-color: transparent transparent;
}
.playlists-scroll::-webkit-scrollbar { .playlists-scroll::-webkit-scrollbar {
width: 4px; width: 4px;
} }
@@ -972,27 +968,18 @@
} }
.playlists-scroll::-webkit-scrollbar-thumb { .playlists-scroll::-webkit-scrollbar-thumb {
background: transparent; background: rgba(255, 255, 255, 0.1);
border-radius: 4px; border-radius: 4px;
} }
/* Show scrollbar when hovering anywhere on the sidebar */ .playlists-scroll::-webkit-scrollbar-thumb:hover {
.sidebar:hover .playlists-scroll { background: rgba(255, 255, 255, 0.2);
scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
} }
.sidebar:hover .playlists-scroll::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
}
.sidebar:hover .playlists-scroll::-webkit-scrollbar-thumb:hover { /* Compensate margin-right in collapsed mode by shifting icons slightly right */
background: rgba(255, 255, 255, 0.25); .sidebar.collapsed .playlists-scroll .nav-item {
} padding-left: 1px;
/* When sidebar is collapsed, keep scrollbar away from toggle button */
.sidebar.collapsed .playlists-scroll {
overflow-y: auto;
margin-right: 6px;
} }
.playlists-loading, .playlists-loading,
@@ -1004,14 +991,14 @@
.toggle-btn { .toggle-btn {
position: absolute; position: absolute;
right: -11px; right: -10px;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 22px; width: 20px;
height: 22px; height: 20px;
padding: 0; padding: 0;
background: var(--bg-tertiary); background: var(--bg-tertiary);
border: 1px solid rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1);