From 820ef1145ab6dee0fb40098d7e6b82e8888f5e39 Mon Sep 17 00:00:00 2001 From: 4gray Date: Mon, 10 Mar 2025 22:32:13 +0100 Subject: [PATCH] fix: refactor sidebar component for improved layout and responsiveness --- .../sidebar/sidebar.component.html | 64 +++++++++---------- .../sidebar/sidebar.component.scss | 48 ++++++-------- .../video-player/sidebar/sidebar.component.ts | 38 ++++------- 3 files changed, 66 insertions(+), 84 deletions(-) diff --git a/src/app/player/components/video-player/sidebar/sidebar.component.html b/src/app/player/components/video-player/sidebar/sidebar.component.html index c9d209d97..ee13d5ec0 100644 --- a/src/app/player/components/video-player/sidebar/sidebar.component.html +++ b/src/app/player/components/video-player/sidebar/sidebar.component.html @@ -1,33 +1,35 @@ -
-
-
- -
-
- @if (sidebarView === 'CHANNELS') { - {{ playlistTitle$ | async }} - } @else { - {{ 'HOME.PLAYLISTS.MY_PLAYLISTS' | translate }} - } -
-
- {{ - sidebarView === 'CHANNELS' - ? channels?.length + - ' ' + - ('HOME.PLAYLISTS.CHANNELS' | translate) - : ('HOME.PLAYLISTS.MY_PLAYLISTS_SUBTITLE' - | translate) - }} -
-
-
- +
+
+ +
+
+ @if (sidebarView === 'CHANNELS') { + {{ playlistTitle$ | async }} + } @else { + {{ 'HOME.PLAYLISTS.MY_PLAYLISTS' | translate }} + } +
+
+ {{ + sidebarView === 'CHANNELS' + ? channels()?.length + + ' ' + + ('HOME.PLAYLISTS.CHANNELS' | translate) + : ('HOME.PLAYLISTS.MY_PLAYLISTS_SUBTITLE' | translate) + }} +
+
+
+ + @if (sidebarView === 'CHANNELS') {