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:
1 parent
a7f0310682
commit
3568cea956
3 files changed
+23
-5
No files matched your search
@@ -71,7 +71,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
{#if showTooltip && effectiveTooltip}
|
{#if showTooltip && effectiveTooltip}
|
||||||
<div class="custom-tooltip" style={tooltipStyle}>
|
<div class="custom-tooltip" class:bold-first-line={!showLabel} style={tooltipStyle}>
|
||||||
{effectiveTooltip}
|
{effectiveTooltip}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -149,4 +149,9 @@
|
|||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-tooltip.bold-first-line::first-line {
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -950,6 +950,19 @@
|
|||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
flex: 1;
|
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,
|
.playlists-loading,
|
||||||
@@ -961,14 +974,14 @@
|
|||||||
|
|
||||||
.toggle-btn {
|
.toggle-btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -16px;
|
right: -14px;
|
||||||
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: 32px;
|
width: 28px;
|
||||||
height: 32px;
|
height: 28px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: rgba(255, 255, 255, 0.08);
|
background: rgba(255, 255, 255, 0.08);
|
||||||
backdrop-filter: blur(12px);
|
backdrop-filter: blur(12px);
|
||||||
|
|||||||
@@ -2728,7 +2728,7 @@
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
height: calc(100vh - 136px); /* 104px NowPlayingBar + 32px TitleBar */
|
height: calc(100vh - 136px); /* 104px NowPlayingBar + 32px TitleBar */
|
||||||
overflow: hidden; /* Views handle their own scrolling */
|
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 */
|
padding-right: 8px; /* Gap between scrollbar and window edge */
|
||||||
background-color: var(--bg-primary, #0f0f0f);
|
background-color: var(--bg-primary, #0f0f0f);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user