mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 18:36:15 -08:00
Show sources playlist scrollbar
This commit is contained in:
1 parent
e3388de989
commit
c276d48bb7
2 files changed
+14
-1
No files matched your search
+4
-1
@@ -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)"
|
||||
|
||||
+10
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user