From 78e6bd337465e8057f995efac4052be535d520a3 Mon Sep 17 00:00:00 2001 From: Sean Edmunds Date: Mon, 12 Oct 2026 16:17:50 -0500 Subject: [PATCH] Minor style fix --- .../components/ThemePlaylistStack.tsx | 301 +++++++++--------- 1 file changed, 151 insertions(+), 150 deletions(-) diff --git a/src/pages/settings/components/Theming/ThemePlaylists/components/ThemePlaylistStack.tsx b/src/pages/settings/components/Theming/ThemePlaylists/components/ThemePlaylistStack.tsx index afae879..62f97fe 100644 --- a/src/pages/settings/components/Theming/ThemePlaylists/components/ThemePlaylistStack.tsx +++ b/src/pages/settings/components/Theming/ThemePlaylists/components/ThemePlaylistStack.tsx @@ -126,7 +126,7 @@ export function ThemePlaylistStack({ ); } }, [indexOffset]); - + return ( - - setHover(true)} - onMouseLeave={() => setHover(false)} - style={{ - background: hover - ? 'radial-gradient(var(--mantine-color-search-0), transparent)' - : undefined, - cursor: 'pointer', - borderRadius: '100%', - }} - onClick={() => { - setCurrentThemePlaylist(cardPlaylist.name); - setThemeName('random'); - }} - > - {modalOpened && ( - handleDelete(cardPlaylist, 'api/themePlaylists')} - title='Delete Theme Playlist' - body={ - - Are you sure you want to delete this Theme Playlist? - {`"${cardPlaylist.name}"`} - This action cannot be undone! - - } - /> - )} + + setHover(true)} + onMouseLeave={() => setHover(false)} style={{ - overflow: 'hidden', - transition: 'all 0.5s ease-in-out', - overscrollBehavior: 'contain', + background: hover + ? 'radial-gradient(var(--mantine-color-search-0), transparent)' + : undefined, + cursor: 'pointer', + borderRadius: '100%', + }} + onClick={() => { + setCurrentThemePlaylist(cardPlaylist.name); + setThemeName('random'); }} - onWheel={handleMouseWheel} > - {cardPlaylist?.name === 'Time of Day' ? ( - <> - - theme.id === Number(themeList[0]), - ) || missingTheme - } - /> - - - theme.id === Number(themeList[1]), - ) || missingTheme - } - /> - - - theme.id === Number(themeList[2]), - ) || missingTheme - } - /> - - - theme.id === Number(themeList[3]), - ) || missingTheme - } - /> - - - ) : ( - items + {modalOpened && ( + handleDelete(cardPlaylist, 'api/themePlaylists')} + title='Delete Theme Playlist' + body={ + + Are you sure you want to delete this Theme Playlist? + {`"${cardPlaylist.name}"`} + This action cannot be undone! + + } + /> )} - - - - - {cardPlaylist.name} - - - {!defaultLists.includes(cardPlaylist.name) && ( - { - handleOpen(cardPlaylist); - }} - > - - + {cardPlaylist?.name === 'Time of Day' ? ( + <> + + theme.id === Number(themeList[0]), + ) || missingTheme + } + /> + + + theme.id === Number(themeList[1]), + ) || missingTheme + } + /> + + + theme.id === Number(themeList[2]), + ) || missingTheme + } + /> + + + theme.id === Number(themeList[3]), + ) || missingTheme + } + /> + + + ) : ( + items )} - {cardPlaylist.default === 0 && ( - { - openModal(); - }} - > - - - )} - + + + + + + {cardPlaylist.name} + + + {!defaultLists.includes(cardPlaylist.name) && ( + { + handleOpen(cardPlaylist); + }} + > + + + )} + {cardPlaylist.default === 0 && ( + { + openModal(); + }} + > + + + )} - - + +