Skip to content

Commit

Permalink
fix touch
Browse files Browse the repository at this point in the history
  • Loading branch information
fizfakovets committed Mar 8, 2024
1 parent 829a6d9 commit d0eba18
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/IrdomLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ defineProps<{
</script>

<template>
<v-main class="main">
<slot />
</v-main>
<div v-touch="touch" class="touch">
<v-main class="main">
<slot />
</v-main>
</div>
</template>

<style scoped>
.touch,
.main {
width: 100%;
height: 100%;
}
.main {
max-width: 900px;
padding: calc(var(--v-layout-top) + 12px) min(5%, 8px) calc(var(--v-layout-bottom) + 12px);
margin: 0 auto;
Expand Down

0 comments on commit d0eba18

Please sign in to comment.