Theme updates and style fixes

This commit is contained in:
Sean Edmunds
2025-05-23 13:32:38 -05:00
parent ee69cc9d09
commit 79ebb1b9e9
16 changed files with 488 additions and 386 deletions

View File

@@ -197,7 +197,7 @@ function ThemeCard({
setShiftEdit(0);
}}
onClick={() => {
setShiftEdit(0);
handleOpen(cardTheme);
}}
gap={0}
style={{
@@ -216,9 +216,6 @@ function ThemeCard({
}}
>
<FiEdit
onClick={() => {
handleOpen(cardTheme);
}}
style={{
fontSize: '2em',
fontWeight: 'bold',
@@ -234,7 +231,15 @@ function ThemeCard({
setShiftShuffle(0);
}}
onClick={() => {
setShiftShuffle(0);
const themeList = JSON.parse(
themePlaylists?.find(
(t: ThemePlaylist) => t?.name === currentThemePlaylist,
)?.themeList ?? '[]',
);
const filteredThemes = allThemes.filter((t: Theme) =>
themeList.includes(t.id),
);
handleThemeChange(filteredThemes, false);
}}
gap={0}
style={{
@@ -254,17 +259,6 @@ function ThemeCard({
}}
>
<FiShuffle
onClick={() => {
const themeList = JSON.parse(
themePlaylists?.find(
(t: ThemePlaylist) => t?.name === currentThemePlaylist,
)?.themeList ?? '[]',
);
const filteredThemes = allThemes.filter((t: Theme) =>
themeList.includes(t.id),
);
handleThemeChange(filteredThemes, false);
}}
style={{
fontSize: '2em',
fontWeight: 'bold',