Skip to content

Commit

Permalink
style: screensafearea
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Dec 3, 2024
1 parent 6f57d5f commit 135a8a0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/stage/src/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 135a8a0

Please sign in to comment.