fix(ui): refine sidebar toggle and collapsed mode

- Reduce toggle button size from 32px to 28px
- Hide scrollbar in collapsed mode to keep icons perfectly aligned
- Add bold first line to playlist tooltips when sidebar is collapsed
- Adjust main content padding (20px) for smaller button
This commit is contained in:
vicrodh committed 2026-01-23 16:00:10 -06:00
1 parent a7f0310682
commit 3568cea956
3 files changed
+23 -5

No files matched your search

+6 -1
View File
@@ -71,7 +71,7 @@
</button>
{#if showTooltip && effectiveTooltip}
<div class="custom-tooltip" style={tooltipStyle}>
<div class="custom-tooltip" class:bold-first-line={!showLabel} style={tooltipStyle}>
{effectiveTooltip}
</div>
{/if}
@@ -149,4 +149,9 @@
min-width: 120px;
max-width: 200px;
}
.custom-tooltip.bold-first-line::first-line {
font-weight: 600;
color: var(--text-primary);
}
</style>
+16 -3
View File
@@ -950,6 +950,19 @@
padding-right: 4px;
min-height: 0;
flex: 1;
scrollbar-gutter: stable;
}
/* When sidebar is collapsed, hide scrollbar to keep icons perfectly aligned */
.sidebar.collapsed .playlists-scroll {
scrollbar-gutter: auto;
padding-right: 0;
-ms-overflow-style: none;
scrollbar-width: none;
}
.sidebar.collapsed .playlists-scroll::-webkit-scrollbar {
display: none;
}
.playlists-loading,
@@ -961,14 +974,14 @@
.toggle-btn {
position: absolute;
right: -16px;
right: -14px;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
width: 28px;
height: 28px;
padding: 0;
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
+1 -1
View File
@@ -2728,7 +2728,7 @@
min-width: 0;
height: calc(100vh - 136px); /* 104px NowPlayingBar + 32px TitleBar */
overflow: hidden; /* Views handle their own scrolling */
padding-left: 22px; /* Space for sidebar toggle button (16px overlap + 6px margin) */
padding-left: 20px; /* Space for sidebar toggle button (14px overlap + 6px margin) */
padding-right: 8px; /* Gap between scrollbar and window edge */
background-color: var(--bg-primary, #0f0f0f);
}