Show sources playlist scrollbar

This commit is contained in:
4gray committed 2026-06-20 12:52:16 +02:00
1 parent e3388de989
commit c276d48bb7
2 files changed
+14 -1

No files matched your search

@@ -36,7 +36,10 @@
</mat-menu>
</header>
}
<div class="sources-content">
<div
class="sources-content"
[class.app-scrollbar]="visibleSourcesCount() > 0"
>
<app-recent-playlists
[searchQueryInput]="searchQuery()"
(addPlaylistClicked)="onAddPlaylist($event)"
@@ -144,4 +144,14 @@ describe('WorkspaceSourcesComponent', () => {
expect(subtitle.textContent?.trim()).toBe('1 playlist');
expect(subtitle.tagName).toBe('SPAN');
});
it('uses the shared always-visible scrollbar utility for the playlist list', async () => {
fixture.detectChanges();
await fixture.whenStable();
const content: HTMLElement =
fixture.nativeElement.querySelector('.sources-content');
expect(content.classList.contains('app-scrollbar')).toBe(true);
});
});