This commit is contained in:
@@ -248,7 +248,7 @@ export function BackgroundModal({
|
||||
style={{
|
||||
aspectRatio: '16/9',
|
||||
width: '100%',
|
||||
backgroundImage: `url(../../api/backgroundImages/thumbs/${background})`,
|
||||
backgroundImage: `url(../../trigger/api/backgroundImages/thumbs/${background})`,
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
|
||||
@@ -36,7 +36,7 @@ export function BackgroundLightbox({
|
||||
<Image
|
||||
style={{ cursor: 'zoom-out' }}
|
||||
onClick={close}
|
||||
src={`../../api/backgroundImages/${background}`}
|
||||
src={`../../trigger/api/backgroundImages/${background}`}
|
||||
/>
|
||||
</Modal.Body>
|
||||
</Modal.Content>
|
||||
|
||||
@@ -41,7 +41,7 @@ export function DeleteBackground({
|
||||
style={{
|
||||
aspectRatio: '16/9',
|
||||
height: '100%',
|
||||
backgroundImage: `url(../../api/backgroundImages/thumbs/${fileName})`,
|
||||
backgroundImage: `url(../../trigger/api/backgroundImages/thumbs/${fileName})`,
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
|
||||
@@ -49,7 +49,7 @@ export function EditBackground({
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
<Image src={`../../api/backgroundImages/thumbs/${fileName}`} />
|
||||
<Image src={`../../trigger/api/backgroundImages/thumbs/${fileName}`} />
|
||||
</Stack>
|
||||
<Group>
|
||||
<Button
|
||||
|
||||
@@ -62,7 +62,7 @@ export function ThemeSelect({
|
||||
backgroundImage:
|
||||
theme?.backgroundImage.toLocaleLowerCase() === 'none'
|
||||
? undefined
|
||||
: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${theme?.backgroundImage})`,
|
||||
: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${theme?.backgroundImage})`,
|
||||
backgroundSize:
|
||||
theme?.backgroundImage.toLocaleLowerCase() === 'none' ? undefined : 'cover',
|
||||
backgroundColor:
|
||||
@@ -89,7 +89,7 @@ export function ThemeSelect({
|
||||
backgroundImage:
|
||||
theme?.backgroundImage.toLocaleLowerCase() === 'none'
|
||||
? undefined
|
||||
: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${theme?.backgroundImage})`,
|
||||
: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${theme?.backgroundImage})`,
|
||||
backgroundSize:
|
||||
theme?.backgroundImage.toLocaleLowerCase() === 'none'
|
||||
? undefined
|
||||
|
||||
@@ -114,7 +114,7 @@ export function ThemeCard({
|
||||
backgroundImage:
|
||||
cardTheme?.backgroundImage.toLocaleLowerCase() === 'none'
|
||||
? undefined
|
||||
: `linear-gradient(${cardTheme?.backgroundColor}33, ${cardTheme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${cardTheme?.backgroundImage})`,
|
||||
: `linear-gradient(${cardTheme?.backgroundColor}33, ${cardTheme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${cardTheme?.backgroundImage})`,
|
||||
backgroundSize:
|
||||
cardTheme?.backgroundImage.toLocaleLowerCase() === 'none'
|
||||
? undefined
|
||||
|
||||
@@ -15,7 +15,7 @@ export function ThemeMiniCard({ miniTheme }: { miniTheme: Theme | undefined }) {
|
||||
backgroundImage:
|
||||
miniTheme?.backgroundImage.toLocaleLowerCase() === 'none'
|
||||
? undefined
|
||||
: `linear-gradient(${miniTheme?.backgroundColor}33, ${miniTheme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${miniTheme?.backgroundImage})`,
|
||||
: `linear-gradient(${miniTheme?.backgroundColor}33, ${miniTheme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${miniTheme?.backgroundImage})`,
|
||||
backgroundSize:
|
||||
miniTheme?.backgroundImage.toLocaleLowerCase() === 'none' ? undefined : 'cover',
|
||||
backgroundColor:
|
||||
|
||||
@@ -24,8 +24,8 @@ export default function BackgroundItem({
|
||||
background:
|
||||
item !== 'none' && item !== 'None'
|
||||
? index === hovered
|
||||
? `linear-gradient(${designerTheme.backgroundColor}88, ${designerTheme.backgroundColor}88), no-repeat center url(../../api/backgroundImages/thumbs/${item})`
|
||||
: `no-repeat center url(../../api/backgroundImages/thumbs/${item})`
|
||||
? `linear-gradient(${designerTheme.backgroundColor}88, ${designerTheme.backgroundColor}88), no-repeat center url(../../trigger/api/backgroundImages/thumbs/${item})`
|
||||
: `no-repeat center url(../../trigger/api/backgroundImages/thumbs/${item})`
|
||||
: 'repeating-linear-gradient(45deg, #33333366, #33333366 10px, #88888866 10px, #88888866 20px)',
|
||||
backgroundSize: item === 'none' ? undefined : 'cover',
|
||||
backgroundColor: item === 'none' ? '#00000088' : undefined,
|
||||
|
||||
@@ -171,7 +171,7 @@ export default function ThemeChanges({
|
||||
defaultTheme[key as keyof Theme] as string
|
||||
).toLocaleLowerCase() === 'none'
|
||||
? 'https://placehold.co/540x360?text=None'
|
||||
: `../../api/backgroundImages/thumbs/${defaultTheme[key as keyof Theme] as string}`
|
||||
: `../../trigger/api/backgroundImages/thumbs/${defaultTheme[key as keyof Theme] as string}`
|
||||
}
|
||||
/>
|
||||
<Text>→</Text>
|
||||
@@ -182,7 +182,7 @@ export default function ThemeChanges({
|
||||
designerTheme[key as keyof Theme] as string
|
||||
).toLocaleLowerCase() === 'none'
|
||||
? 'https://placehold.co/540x360?text=None'
|
||||
: `../../api/backgroundImages/thumbs/${designerTheme[key as keyof Theme] as string}`
|
||||
: `../../trigger/api/backgroundImages/thumbs/${designerTheme[key as keyof Theme] as string}`
|
||||
}
|
||||
/>
|
||||
</>
|
||||
|
||||
@@ -12,7 +12,7 @@ export function ThemeModalContent({ selectedTheme }: { selectedTheme: Theme }) {
|
||||
backgroundImage:
|
||||
selectedTheme?.backgroundImage.toLocaleLowerCase() === 'none'
|
||||
? undefined
|
||||
: `linear-gradient(${selectedTheme?.backgroundColor}33, ${selectedTheme?.backgroundColor}33), url(../../api/backgroundImages/thumbs/${selectedTheme?.backgroundImage})`,
|
||||
: `linear-gradient(${selectedTheme?.backgroundColor}33, ${selectedTheme?.backgroundColor}33), url(../../trigger/api/backgroundImages/thumbs/${selectedTheme?.backgroundImage})`,
|
||||
backgroundSize:
|
||||
selectedTheme?.backgroundImage.toLocaleLowerCase() === 'none'
|
||||
? undefined
|
||||
|
||||
Reference in New Issue
Block a user