fix: multiple UX improvements and bug fixes
Playlist & Favorites: - Fix playlist loading error (missing field `id` in JSON parsing) - Add serde defaults for Track and PlaylistOwner optional fields - Fix track favorites toggle to actually call backend API - Add "Add to playlist" button on track rows in album view Sidebar UI improvements: - Increase sidebar width to 280px - Reduce text size and margins throughout - Normalize all icons to 14px (matching + and refresh buttons) - Add text overflow with ellipsis and tooltip for playlist names User card: - Make user card more compact (smaller avatar, fonts, icons) - Add collapsible toggle - when collapsed shows mini QBZ logo + username Queue & Playback: - Fix next_track spam when queue has only one song (queueEnded flag) Other fixes: - Fix TrackRow prop types (remove invalid hires, bitDepth, samplingRate props) - Fix FavoritesView and PlaylistDetailView component prop types - Add diagnostic logging to credential persistence
This commit is contained in:
1 parent
6eed045404
commit
cdc06d8759
10 files changed
+258
-115
No files matched your search
@@ -15,6 +15,7 @@
|
||||
{onclick}
|
||||
class="nav-item"
|
||||
class:active
|
||||
title={label}
|
||||
>
|
||||
<div class="icon-container">
|
||||
{@render icon()}
|
||||
@@ -25,17 +26,18 @@
|
||||
<style>
|
||||
.nav-item {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 12px;
|
||||
border-radius: 8px;
|
||||
padding: 0 8px;
|
||||
border-radius: 6px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
transition: all 150ms ease;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
@@ -48,15 +50,21 @@
|
||||
}
|
||||
|
||||
.icon-container {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user