Small fix

This commit is contained in:
Sean Edmunds
2025-07-24 14:01:47 -05:00
parent b8c10ef75b
commit 5b253db385
7 changed files with 21 additions and 22 deletions

View File

@@ -26,6 +26,7 @@ export function AddItemModal({
closeOnEscape closeOnEscape
closeOnClickOutside closeOnClickOutside
centered centered
keepMounted={false}
> >
<Modal.Overlay /> <Modal.Overlay />
<Modal.Content h={'auto'}> <Modal.Content h={'auto'}>

View File

@@ -27,6 +27,7 @@ export function DeleteItemModal({
closeOnEscape closeOnEscape
closeOnClickOutside closeOnClickOutside
centered centered
keepMounted={false}
> >
<Modal.Overlay /> <Modal.Overlay />
<Modal.Content style={{ zIndex: 1000 }} h={'auto'}> <Modal.Content style={{ zIndex: 1000 }} h={'auto'}>

View File

@@ -32,6 +32,7 @@ export function HelpModal({
}} }}
closeOnEscape closeOnEscape
closeOnClickOutside closeOnClickOutside
keepMounted={false}
> >
<Modal.Overlay /> <Modal.Overlay />
<Modal.Content> <Modal.Content>

View File

@@ -49,6 +49,7 @@ export function WeatherModal({
}} }}
closeOnEscape closeOnEscape
closeOnClickOutside closeOnClickOutside
keepMounted={false}
> >
<Modal.Overlay /> <Modal.Overlay />
<Modal.Content> <Modal.Content>

View File

@@ -10,7 +10,8 @@ export function BackgroundLightbox({
background: string; background: string;
}) { }) {
return ( return (
<Modal.Root opened={opened} onClose={close} size={'auto'} centered zIndex={250}> <Modal.Root opened={opened} onClose={close} size={'auto'} centered zIndex={250}
keepMounted={false}>
<Group <Group
px={'1rem'} px={'1rem'}
onClick={close} onClick={close}

View File

@@ -49,6 +49,7 @@ export function ThemePlaylistModal({
handleClose(); handleClose();
setThemeList('[]'); setThemeList('[]');
}} }}
keepMounted={false}
> >
<Modal.Overlay /> <Modal.Overlay />
<Modal.Content> <Modal.Content>

View File

@@ -164,6 +164,7 @@ export function ThemeModal({
}} }}
fullScreen={isMobile} fullScreen={isMobile}
centered centered
keepMounted={false}
> >
<Modal.Overlay /> <Modal.Overlay />
<Modal.Content> <Modal.Content>
@@ -206,7 +207,7 @@ export function ThemeModal({
<Stack <Stack
justify='center' justify='center'
align='center' align='center'
bg={'var(--mantine-color-accent-0)'} bg={'var(--mantine-color-primary-0)'}
px={'1rem'} px={'1rem'}
py={'3rem'} py={'3rem'}
style={{ borderRadius: '8px' }} style={{ borderRadius: '8px' }}
@@ -236,15 +237,17 @@ export function ThemeModal({
style={{ style={{
backgroundColor: 'transparent', backgroundColor: 'transparent',
boxShadow: '3px 3px var(--mantine-color-border-0)', boxShadow: '3px 3px var(--mantine-color-border-0)',
overflow: 'visible',
}} }}
styles={{ styles={{
label: { label: {
backgroundColor: 'var(--mantine-color-primary-0)', backgroundColor: 'var(--mantine-color-background-0)',
color: 'var(--mantine-color-primary-0)',
height: 'min-content', height: 'min-content',
padding: '.5rem', padding: '.5rem',
borderRadius: 4, borderRadius: 4,
position: 'absolute', position: 'absolute',
bottom: '0', bottom: '-16px',
fontSize: '1rem', fontSize: '1rem',
}, },
}} }}
@@ -263,25 +266,13 @@ export function ThemeModal({
justify='center' justify='center'
align='center' align='center'
pos={'relative'} pos={'relative'}
bg={'var(--mantine-color-accent-0)'} bg={'var(--mantine-color-primary-0)'}
px={'1rem'} px={'1rem'}
py={'3rem'} py={'3rem'}
style={{ borderRadius: '8px' }} style={{ borderRadius: '8px' }}
> >
<ThemeCard <ThemeCard
cardTheme={{ cardTheme={{...allThemes[Math.floor(Math.random() * allThemes.length)], randomEnabled: 1}}
id: undefined,
name: 'Theme',
backgroundImage: 'none',
backgroundColor: '#263238',
searchColor: '#AABBC320',
primaryColor: '#AABBC3',
accentColor: '#aeea00',
borderColor: '#aeea00',
randomEnabled: 1,
textShadowsEnabled: 0,
appShadowsEnabled: 0,
}}
handleOpen={() => {}} handleOpen={() => {}}
allThemes={[]} allThemes={[]}
themePlaylists={[]} themePlaylists={[]}
@@ -302,7 +293,7 @@ export function ThemeModal({
display: 'flex', display: 'flex',
}} }}
/> />
<FaArrowRight size={35} style={{ position: 'absolute' }} /> <FaArrowRight size={45} style={{ color: 'var(--mantine-color-background-0)', position: 'absolute', stroke: 'var(--mantine-color-accent-0)', strokeWidth: 25 }} />
<Button <Button
pos={'absolute'} pos={'absolute'}
w={'275px'} w={'275px'}
@@ -310,15 +301,17 @@ export function ThemeModal({
style={{ style={{
backgroundColor: 'transparent', backgroundColor: 'transparent',
boxShadow: '3px 3px var(--mantine-color-border-0)', boxShadow: '3px 3px var(--mantine-color-border-0)',
overflow: 'visible',
}} }}
styles={{ styles={{
label: { label: {
backgroundColor: 'var(--mantine-color-primary-0)', backgroundColor: 'var(--mantine-color-background-0)',
color: 'var(--mantine-color-primary-0)',
height: 'min-content', height: 'min-content',
padding: '.5rem', padding: '.5rem',
borderRadius: 4, borderRadius: 4,
position: 'absolute', position: 'absolute',
bottom: '0', bottom: '-16px',
fontSize: '1rem', fontSize: '1rem',
}, },
}} }}