From 589bff496d94de35cc3ae67bd6b50ccf59605cb3 Mon Sep 17 00:00:00 2001 From: Gireesh Date: Sun, 5 May 2024 21:57:52 +0530 Subject: [PATCH] Playlist selector V2 - UI issue fix --- src/g-player-react/src/Components/CommnPopup.js | 4 ++-- src/g-player-react/src/Components/main.scss | 6 +++--- .../src/Components/playlist/PlayllistSelectorV2.js | 9 +++++---- .../src/Components/screen/GPContextMenu.js | 6 ++++++ 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/g-player-react/src/Components/CommnPopup.js b/src/g-player-react/src/Components/CommnPopup.js index 2a834a5..a79fb21 100644 --- a/src/g-player-react/src/Components/CommnPopup.js +++ b/src/g-player-react/src/Components/CommnPopup.js @@ -79,8 +79,8 @@ export const CommonPopup = () => { return ( <> -
-
+
+
diff --git a/src/g-player-react/src/Components/main.scss b/src/g-player-react/src/Components/main.scss index 1b1fa0a..807a735 100644 --- a/src/g-player-react/src/Components/main.scss +++ b/src/g-player-react/src/Components/main.scss @@ -2661,8 +2661,8 @@ a.disabled-click{ } .playlist-selector-v2{ - display: flex; - flex-wrap: wrap; + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; column-gap: 20px; row-gap: 10px; justify-content: space-between; @@ -2672,7 +2672,7 @@ a.disabled-click{ border: 1px solid; padding: 5px; border-radius: 4px; - width: 10em; + // width: 10em; text-wrap: nowrap; overflow: hidden; text-overflow: ellipsis; diff --git a/src/g-player-react/src/Components/playlist/PlayllistSelectorV2.js b/src/g-player-react/src/Components/playlist/PlayllistSelectorV2.js index 1fbd6fd..fc53255 100644 --- a/src/g-player-react/src/Components/playlist/PlayllistSelectorV2.js +++ b/src/g-player-react/src/Components/playlist/PlayllistSelectorV2.js @@ -122,17 +122,18 @@ export const PlaylistSelector = () => { return(
-
+
{obj && obj.title+" - "+obj.album}
-
- -
+ {playLists && playLists.map(playlist =>
handleOnPlaylistClick(playlist.id,playlist.name)} title={playlist.name}>
)} +
+ +
); } \ No newline at end of file diff --git a/src/g-player-react/src/Components/screen/GPContextMenu.js b/src/g-player-react/src/Components/screen/GPContextMenu.js index cc88eea..ae5f199 100644 --- a/src/g-player-react/src/Components/screen/GPContextMenu.js +++ b/src/g-player-react/src/Components/screen/GPContextMenu.js @@ -86,6 +86,12 @@ export const GPContexMenu = () => { contentType: COMPONENT, component: PlaylistSelectorV2, primaryClassName: "no-display", + popContStyle:{ + width:'60%' + }, + popupStyle:{ + top:'-5vh' + } } dispatch(setCommonPopupObj(commonPopupObj));