Conditional Rendering

This commit is contained in:
2025-03-28 15:02:59 +01:00
parent eeec6d2f92
commit 338bcd0df9
2 changed files with 4 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ const footerLinks = [/*{
</UDashboardSidebar>
</UDashboardPanel>
<UDashboardPage style="height: 92vh">
<UDashboardPage style="height: 80vh">
<UDashboardPanel grow>
<slot />
</UDashboardPanel>

View File

@@ -11,8 +11,8 @@ const dataStore = useDataStore()
const supabase = useSupabaseClient()
const type = route.params.type
const platform = useCapacitor().getIsPhone() ? "mobile" : "default"
const platform = await useCapacitor().getIsPhone() ? "mobile" : "default"
console.log(platform)
const dataType = dataStore.dataTypes[route.params.type]
@@ -24,7 +24,7 @@ const item = ref({})
const setupPage = async () => {
if(platform === "mobile") {
if(await useCapacitor().getIsPhone()) {
setPageLayout("mobile")
}