Style bug fix

This commit is contained in:
Sean Edmunds
2025-06-23 16:53:43 -05:00
parent 3c3f4072f7
commit 81aecb261a

View File

@@ -8,13 +8,16 @@ export default function ThemeModalContent({ selectedTheme }: { selectedTheme: Th
style={{ style={{
width: '100%', width: '100%',
backgroundImage: backgroundImage:
selectedTheme.backgroundImage !== 'none' selectedTheme?.backgroundImage.toLocaleLowerCase() !== 'none'
? `linear-gradient(${selectedTheme?.backgroundColor}33, ${selectedTheme?.backgroundColor}33), url(../../api/backgroundImages/${selectedTheme?.backgroundImage})` ? `linear-gradient(${selectedTheme?.backgroundColor}33, ${selectedTheme?.backgroundColor}33), url(../../api/backgroundImages/${selectedTheme?.backgroundImage})`
: undefined, : undefined,
backgroundSize: selectedTheme.backgroundImage !== 'none' ? 'cover' : undefined, backgroundSize:
selectedTheme?.backgroundImage.toLocaleLowerCase() !== 'none'
? 'cover'
: undefined,
backgroundColor: backgroundColor:
selectedTheme.backgroundImage === 'none' selectedTheme?.backgroundImage.toLocaleLowerCase() === 'none'
? selectedTheme.backgroundColor ? selectedTheme?.backgroundColor
: undefined, : undefined,
backgroundPosition: 'center', backgroundPosition: 'center',
borderRadius: '10px', borderRadius: '10px',