fix(sidebar): scrollbar position and hover reliability
- Hover on .sidebar (larger area, more reliable) - Collapsed mode: margin-right 6px (away from toggle button) - Removed padding-left that misaligned icons
This commit is contained in:
1 parent
25fd5da72d
commit
12a3393050
1 file changed
+6
-7
@@ -976,24 +976,23 @@
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Show scrollbar when hovering the sidebar content area */
|
||||
.content:hover .playlists-scroll {
|
||||
/* Show scrollbar when hovering anywhere on the sidebar */
|
||||
.sidebar:hover .playlists-scroll {
|
||||
scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
|
||||
}
|
||||
|
||||
.content:hover .playlists-scroll::-webkit-scrollbar-thumb {
|
||||
.sidebar:hover .playlists-scroll::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
.content:hover .playlists-scroll::-webkit-scrollbar-thumb:hover {
|
||||
.sidebar:hover .playlists-scroll::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
/* When sidebar is collapsed, align icons with rest of sidebar */
|
||||
/* When sidebar is collapsed, keep scrollbar away from toggle button */
|
||||
.sidebar.collapsed .playlists-scroll {
|
||||
overflow-y: auto;
|
||||
margin-right: 0;
|
||||
padding-left: 1px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.playlists-loading,
|
||||
|
||||
Reference in new issue
Block a user