Style bug fix
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user