|
53 | 53 | actionLabel: 'Open Cloud Save', |
54 | 54 | title: 'Cloud Save Available', |
55 | 55 | message: 'A cloud save with more play time is available.', |
56 | | - duration: 12_000 |
| 56 | + duration: 12_000, |
57 | 57 | }); |
58 | 58 | } |
59 | 59 | } catch (error) { |
|
108 | 108 | </script> |
109 | 109 |
|
110 | 110 | <div class="flex flex-col min-h-screen"> |
111 | | - <RemoteBanner/> |
112 | | - <NavBar/> |
113 | | - <Toaster/> |
114 | | - <AutoSaveIndicator/> |
| 111 | + <RemoteBanner /> |
| 112 | + <NavBar /> |
| 113 | + <Toaster /> |
| 114 | + <AutoSaveIndicator /> |
115 | 115 |
|
116 | 116 | {#if realmManager.availableRealms.length > 1} |
117 | 117 | <div |
|
121 | 121 | <div class="flex flex-col gap-1"> |
122 | 122 | {#each realmManager.availableRealms as realm (realm.id)} |
123 | 123 | <button |
124 | | - class="flex items-center gap-2 px-2 py-1.5 rounded-sm transition-all duration-200 hover:scale-105 {realmManager.selectedRealmId === realm.id ? 'bg-accent-500/60 border-accent-400/50' : 'bg-white/5 hover:bg-white/10'}" |
| 124 | + class="flex items-center gap-2 px-2 py-1.5 rounded-sm transition-all duration-200 hover:scale-105 {( |
| 125 | + realmManager.selectedRealmId === realm.id |
| 126 | + ) ? |
| 127 | + 'bg-accent-500/60 border-accent-400/50' |
| 128 | + : 'bg-white/5 hover:bg-white/10'}" |
125 | 129 | onclick={() => realmManager.selectRealm(realm.id)} |
126 | 130 | title="{realm.title} - {formatNumber(realmManager.realmValues[realm.id] ?? 0)} {realm.currency.name.toLowerCase()}" |
127 | 131 | > |
|
134 | 138 | {/if} |
135 | 139 |
|
136 | 140 | <main |
137 | | - class="relative flex-1 {mobile.current ? 'overflow-y-auto overflow-x-hidden' : 'overflow-hidden'} lg:pb-4 transition-all duration-300" |
| 141 | + class="relative flex-1 {mobile.current ? 'overflow-y-auto overflow-x-hidden' : ( |
| 142 | + 'overflow-hidden' |
| 143 | + )} lg:pb-4 transition-all duration-300" |
138 | 144 | style="padding-top: {remoteMessage.message && remoteMessage.isVisible ? 'calc(3rem + 1.5rem)' : '3rem'};" |
139 | 145 | > |
140 | 146 | {#if gameManager.features[FeatureTypes.LEVELS]} |
141 | | - <Levels/> |
| 147 | + <Levels /> |
142 | 148 | {/if} |
143 | 149 |
|
144 | 150 | <!-- Use transform and opacity for virtual desktop swipe effect --> |
|
149 | 155 | class:translate-x-0={realmManager.selectedRealm.id === realm.id} |
150 | 156 | class:opacity-0={realmManager.selectedRealm.id !== realm.id} |
151 | 157 | class:pointer-events-none={realmManager.selectedRealm.id !== realm.id} |
152 | | - style="transform: translateX({realmManager.selectedRealm.id === realm.id ? '0' : (i > realmManager.availableRealms.findIndex(r => r.id === realmManager.selectedRealm.id) ? '100%' : '-100%')}); {realm.background ? `background-image: ${realm.background};` : ''}" |
| 158 | + style="transform: translateX({realmManager.selectedRealm.id === realm.id ? '0' |
| 159 | + : i > realmManager.availableRealms.findIndex(r => r.id === realmManager.selectedRealm.id) ? '100%' |
| 160 | + : '-100%'}); {realm.background ? `background-image: ${realm.background};` : ''}" |
153 | 161 | > |
154 | 162 | <div class="absolute inset-0 overflow-y-auto custom-scrollbar"> |
155 | 163 | <div class="flex flex-col min-h-full"> |
|
0 commit comments