Fix card__images display when multiple images
This commit is contained in:
parent
5da3da90a0
commit
3d62eb029e
2 changed files with 14 additions and 9 deletions
|
|
@ -24,9 +24,8 @@
|
|||
<figure
|
||||
v-if="step.id.includes('Brief') && step.files[0]?.type === 'image'"
|
||||
class="card__images"
|
||||
:data-count="
|
||||
step.files.length > 3 ? step.files.length - 3 : undefined
|
||||
"
|
||||
:data-count="step.files.dynamic.length"
|
||||
:data-plus="step.files.dynamic.length > 3 ? step.files.dynamic.length - 3 : undefined"
|
||||
>
|
||||
<img
|
||||
v-for="image in step.files.dynamic.slice(0, 3)"
|
||||
|
|
@ -38,9 +37,8 @@
|
|||
<figure
|
||||
v-if="step.id === 'virtualSample'"
|
||||
class="card__images"
|
||||
:data-count="
|
||||
step.files.dynamic.length > 3 ? step.files.dynamic.length - 3 : 0
|
||||
"
|
||||
:data-count="step.files.dynamic.length"
|
||||
:data-plus="step.files.dynamic.length > 3 ? step.files.dynamic.length - 3 : undefined"
|
||||
>
|
||||
<img
|
||||
v-for="track in step.files.dynamic"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue