When viewing the web browser from a mobile device, only one image should be displayed instead of all four images fetched from an API. What are some possible ways to achieve this?
The data retrieved includes all the images at once.
<template>
<div
class="
fusion-fullwidth
fullwidth-box
fusion-builder-row-6
hundred-percent-fullwidth
non-hundred-percent-height-scrolling
fusion-equal-height-columns
"
style="
background-color: #3e3731;
background-position: left top;
background-repeat: no-repeat;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
margin-bottom: 0px;
margin-top: 0px;
border-width: 0px 0px 0px 0px;
border-color: #eae9e9;
border-style: solid;
"
>
<div class="fusion-builder-row fusion-row">
<div
v-for="(collection, index) in box_collections"
:key="collection.bo_id"
:class="
'fusion-layout-column fusion_builder_column fusion-builder-column-' +
(index + 11) +
' fusion_builder_column_1_4 1_4 fusion-one-fourth fusion-no-small-visibility'
"
style="margin-top: 0px; margin-bottom: 0px"
>
<div
class="fusion-column-wrapper fusion-flex-column-wrapper-legacy"
:style="
'background-image: url(\'' +
collection.bo_url +
'\'); background-position: center center; background-repeat: no-repeat; background-size: cover; padding: 0px; min-height: 252px; height: auto;'
"
:data-bg-url="collection.bo_url"
>
<div
class="fusion-column-content-centered"
style="min-height: 252px; height: auto"
>
<div class="fusion-column-content">
<div class="fusion-sep-clear" />
<div
class="fusion-separator fusion-full-width-sep"
style="
margin-left: auto;
margin-right: auto;
margin-top: 250px;
width: 100%;
"
/>
<div class="fusion-sep-clear" />
</div>
</div>
<div class="fusion-clearfix" />
</div>
</div>
</div>
</div>
</template>
Should I retrieve them again or is there another solution available?