[F] Use div width instead of screen width
This commit is contained in:
+3
-2
@@ -5,8 +5,9 @@
|
||||
<div id="title-sub">{{config.title.sub}}</div>
|
||||
</div>
|
||||
|
||||
<div id="artwork-container">
|
||||
<el-card class="artwork" :body-style="{padding: '0px', width: responsive.getBlockWidth().toFixed(0) + 'px'}"
|
||||
<div id="artwork-container" ref="artworkContainer">
|
||||
<el-card class="artwork" :body-style="{padding: '0px',
|
||||
width: responsive.getBlockWidth($refs.artworkContainer.clientWidth).toFixed(0) + 'px'}"
|
||||
v-for="(artwork, i) in artworks" :key="artwork.date + artwork.title">
|
||||
<div class="image" :style="{'background-image': `url(${artwork.imgThumb})`}" @click="() => onImageClick(i)">
|
||||
<div class="description">
|
||||
|
||||
Reference in New Issue
Block a user