We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e6456 commit e6bd49bCopy full SHA for e6bd49b
src/components/PanThumb/index.vue
@@ -5,7 +5,8 @@
5
<slot />
6
</div>
7
8
- <img :src="image" class="pan-thumb">
+ <!-- eslint-disable-next-line -->
9
+ <div :style="{backgroundImage: `url(${image})`}" class="pan-thumb"></div>
10
11
</template>
12
@@ -52,7 +53,8 @@ export default {
52
53
.pan-thumb {
54
width: 100%;
55
height: 100%;
- background-size: 100%;
56
+ background-position: center center;
57
+ background-size: cover;
58
border-radius: 50%;
59
overflow: hidden;
60
position: absolute;
0 commit comments