Some Corrections For Mobile

This commit is contained in:
2025-05-31 20:09:36 +02:00
parent cad2ed9dba
commit eb37257ae8
7 changed files with 51 additions and 14 deletions

13
app.vue
View File

@@ -12,6 +12,15 @@ const viewport = useViewport()
console.log('Breakpoint updated:', oldBreakpoint, '->', newBreakpoint)
})*/
const platform = ref('default')
const setup = async () => {
if(await useCapacitor().getIsPhone()) {
platform.value = "mobile"
}
}
setup()
const dev = process.dev
Sentry.init({
@@ -55,9 +64,9 @@ useSeoMeta({
<NuxtPage/>
</NuxtLayout>
<UNotifications/>
<UNotifications :class="platform === 'mobile' ? ['mb-14'] : []"/>
<USlideovers />
<UModals />
<UModals/>
<VitePwaManifest/>
</div>