Skip to content

Commit

Permalink
fix: layout preview missing default style (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
motea927 authored Oct 16, 2024
1 parent 1572eb9 commit 5d16876
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions popup/src/components/LayoutPreview.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div ref="el" :style="mergedStyle" class="z-[990] bg-no-repeat bg-center touch-none"></div>
<div ref="el" :style="mergedStyle"></div>
</template>

<script setup lang="ts">
Expand All @@ -17,7 +17,11 @@ const props = defineProps<{
const defaultStyle = computed<StyleValue>(() => {
return {
backgroundSize: '100% auto',
backgroundImage: `url(${props.imageUrl})`
backgroundImage: `url(${props.imageUrl})`,
zIndex: 990,
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
touchAction: 'none'
}
})
Expand Down

0 comments on commit 5d16876

Please sign in to comment.