tweak(phone/settings): simplify custom background

This commit is contained in:
Christopher committed 2021-03-31 00:43:21 +02:00
1 parent 3157cafd5a
commit c0cca9ceb8
5 files changed
+18 -37

No files matched your search

+4 -3
View File
@@ -104,9 +104,10 @@ function Phone() {
id="phone"
className="PhoneScreen"
style={{
backgroundImage: settings.customWallpaper
? `url(${settings.customWallpaper})`
: `url(media/backgrounds/${settings.wallpaper.value})`,
backgroundImage:
settings.wallpaper.label === 'Custom Wallpaper'
? `url(${settings.customWallpaper})`
: `url(media/backgrounds/${settings.wallpaper.value})`,
}}
>
{isPhoneReady ? (