Skip to content

Commit 83a925d

Browse files
committed
style: rearrange code
1 parent d1987e3 commit 83a925d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/BottomSheet.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts" setup>
2-
import { ref, computed, onMounted, toRefs, watch, nextTick } from 'vue'
2+
import { computed, nextTick, onMounted, ref, toRefs, watch } from 'vue'
33
import { useElementBounding, useWindowSize } from '@vueuse/core'
44
import { type Handler, rubberbandIfOutOfBounds, useGesture } from '@vueuse/gesture'
5-
import { useMotionProperties, useMotionTransitions, useMotionControls } from '@vueuse/motion'
5+
import { useMotionControls, useMotionProperties, useMotionTransitions } from '@vueuse/motion'
66
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
77
import { useSnapPoints } from '../composables/useSnapPoints'
88
@@ -313,9 +313,9 @@ defineExpose({ open, close, snapToPoint })
313313
<Teleport to="body">
314314
<div class="sheet-container">
315315
<Transition name="fade">
316-
<div ref="overlay" class="sheet-overlay" v-show="showSheet && blocking" @click="overlayClick()" />
316+
<div v-show="showSheet && blocking" ref="overlay" class="sheet-overlay" @click="overlayClick()" />
317317
</Transition>
318-
<div ref="sheet" :class="{ 'sheet-show': showSheet, 'sheet-shadow': !blocking }" class="sheet" tabindex="-1" aria-modal="true">
318+
<div ref="sheet" :class="{ 'sheet-show': showSheet, 'sheet-shadow': !blocking }" aria-modal="true" class="sheet" tabindex="-1">
319319
<div ref="sheetHeader" class="sheet-header">
320320
<slot name="header"></slot>
321321
</div>
@@ -376,10 +376,10 @@ defineExpose({ open, close, snapToPoint })
376376
max-height: inherit;
377377
pointer-events: all;
378378
position: absolute;
379+
transition: visibility 250ms ease-in-out;
379380
visibility: hidden;
380381
width: 640px;
381382
will-change: height;
382-
transition: visibility 250ms ease-in-out;
383383
}
384384
385385
.sheet-show {

0 commit comments

Comments
 (0)