I have limited knowledge with CSS and found v-card code online which I used as a starting point. I’ve been able to modify it to almost get the results desired. I have reached a point whereby I cannot get the width of the card to go wider to align the columns as desired. Below is the current code along with a screenshot of the v-card. Looking for any assistance in increasing the width of the v-card.
<template>
<v-card class="mx-auto">
<v-card-item title="OWM Forecast Card">
<template v-slot:subtitle>
{{ payload.daily[0].summary }}
</template>
</v-card-item>
<v-card-text class="py-0">
<div class="d-flex py-2 justify-space-between"></div>
<v-row align="center" no-gutters>
<v-col class="text-h2" cols="10">
{{ payload.current.temp }}°F
</v-col>
icon</br>
</v-col>
</v-row>
<div class="d-flex py-2 justify-space-between"></div>
<v-row align="center" no-gutters>
<v-col cols="3" class="text-center">
<v-icon :icon="payload.daily[1].icon" size="45"></v-icon><br/>
{{ payload.hourly[1].time }}<br/>
{{ payload.hourly[1].temp}}°F<br/>
{{ payload.hourly[1].humidity}}%</br>
{{ payload.hourly[1].wind_speed}} m/h</br>
{{ payload.hourly[1].wind_dir}}</br>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.hourly[2].time }}<br/>
{{ payload.hourly[2].temp}}°F<br/>
{{ payload.hourly[2].humidity}}%</br>
{{ payload.hourly[2].wind_speed}} m/h</br>
{{ payload.hourly[2].wind_dir}}</br>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.hourly[3].time }}<br/>
{{ payload.hourly[3].temp}}°F<br/>
{{ payload.hourly[3].humidity}}%</br>
{{ payload.hourly[3].wind_speed}} m/h</br>
{{ payload.hourly[3].wind_dir}}</br>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.hourly[4].time }}<br/>
{{ payload.hourly[4].temp}}°F<br/>
{{ payload.hourly[4].humidity}}%</br>
{{ payload.hourly[4].wind_speed}} m/h</br>
{{ payload.hourly[4].wind_dir}}</br>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.hourly[5].time }}<br/>
{{ payload.hourly[5].temp}}°F<br/>
{{ payload.hourly[6].humidity}}%</br>
{{ payload.hourly[6].wind_speed}} m/h</br>
{{ payload.hourly[6].wind_dir}}</br>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.hourly[6].time }}<br/>
{{ payload.hourly[6].temp}}°F<br/>
{{ payload.hourly[6].humidity}}%</br>
{{ payload.hourly[6].wind_speed}} m/h</br>
{{ payload.hourly[6].wind_dir}}</br>
</v-col>
</v-row>
<v-row>
</br>
</v-row>
<v-row align="center" no-gutters>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.daily[1].day }}<br/>
{{ payload.daily[1].temp.min }}°F<br/>
{{ payload.daily[1].temp.max }}°F<br/>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.daily[2].day }}<br/>
{{ payload.daily[2].temp.min }}°F<br/>
{{ payload.daily[2].temp.max }}°F<br/>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.daily[3].day }}<br/>
{{ payload.daily[3].temp.min }}°F<br/>
{{ payload.daily[3].temp.max }}°F<br/>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.daily[4].day }}<br/>
{{ payload.daily[4].temp.min }}°F<br/>
{{ payload.daily[4].temp.max }}°F<br/>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.daily[5].day }}<br/>
{{ payload.daily[5].temp.min }}°F<br/>
{{ payload.daily[5].temp.max }}°F<br/>
</v-col>
<v-col cols="3" class="text-center">
icon<br/>
{{ payload.daily[6].day }}<br/>
{{ payload.daily[6].temp.min }}°F<br/>
{{ payload.daily[6].temp.max }}°F<br/>
</v-col>
</v-row>
<v-row align="left" no-gutters>
</br>Last Update: xxx</br>
</v-row>
<div class="d-flex py-2 justify-space-between"></div>
</v-card-text>
<v-divider></v-divider>
</template>
<script>
export default {
data() {
return {
imageSourceURL: 'https://openweathermap.org/img/wn/',
expand: false,
payload: {}
}
},
watch: {
msg: function(){
if(this.msg.payload != undefined) {
this.payload = this.msg.payload;
}
}
},
computed: {
// automatically compute this variable whenever VueJS deems appropriate
iconSource: function() {
return `${this.imageSourceURL}${this.payload.current.weather[0].icon}.png`
},
},
}
</script>