feat(ui): add filter and sort menu to header and clean styles

Add a new mat-menu component for filtering and sorting playlists in the
header area. The filter section iterates playlistTypes and allows toggling
type selection with visual check state. The sort section adds options for
name (asc/desc) and date added (newest/oldest) with active-state visuals
and click handlers that call setSortOptions. A close button is also
included.

Remove unused/duplicate CSS rules from header styles: drop .filter-
container and obsolete .dropdown-menu-header rules to avoid styling
conflicts and reduce dead code. Adjust surrounding selector formatting.
This commit is contained in:
4gray committed 2025-12-21 00:42:48 +01:00
1 parent c84b42284a
commit a874db0b41
6 files changed
+357 -190

No files matched your search

@@ -344,10 +344,6 @@
app-region: no-drag; // Allow button interactions
}
.filter-container {
padding: 0 10px;
}
.add-playlist-btn {
background-color: rgba(139, 92, 246, 0.12) !important;
color: rgba(139, 92, 246, 1) !important;
@@ -365,35 +361,10 @@
}
}
.dropdown-menu-header {
padding: 0 16px;
margin: 8px 0;
font-size: 11px;
font-weight: 600;
color: rgba(255, 255, 255, 0.5);
letter-spacing: 0.05em;
text-transform: uppercase;
}
.active-sort {
background-color: rgba(139, 92, 246, 0.12) !important;
position: relative;
&::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 60%;
background: rgba(139, 92, 246, 0.8);
border-radius: 0 2px 2px 0;
}
}
.check-icon {
margin-left: 8px;
// Badge styling for filter count
::ng-deep .mat-badge-accent .mat-badge-content {
background: rgba(139, 92, 246, 1);
color: white;
}
// Refined Material button and icon overrides