style: screensafearea
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { useScreenSafeArea } from '@vueuse/core'
|
||||
|
||||
const { top, right, bottom, left } = useScreenSafeArea()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main text="gray-700 dark:gray-200" h-full font-sans>
|
||||
<main
|
||||
text="gray-700 dark:gray-200" h-full font-sans
|
||||
:style="{
|
||||
paddingTop: `${top.value}px`,
|
||||
paddingRight: `${right.value}px`,
|
||||
paddingBottom: `${bottom.value}px`,
|
||||
paddingLeft: `${left.value}px`,
|
||||
}"
|
||||
>
|
||||
<RouterView />
|
||||
</main>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user