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>
|
||||
|
||||
{#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>
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user