The ticket cards don't span the whole with of the column, only half. [code] Here's the…
- User
The ticket cards don't span the whole with of the column, only half.
<v-col cols="12" md="6" v-if="tickets"> <v-row> <v-col cols="12"> <div @click="goToTicket" class="w-100 d-flex justify-space-between"> <p style="margin: 0;">Tickets</p> <img src="/images/right-arrow.svg" /> </div> </v-col> <v-col cols="12" md="6"> <div class="d-flex w-100 flex-column gap-4"> <TicketCard v-for="(ticket, index) in tickets" :key="index" :value="ticket" :data="ticket" /> </div> </v-col> </v-row> </v-col>Here's the ticket code:
<script setup> let props = defineProps(['data']); const formatDate = (dateString) => { if (!dateString) return ''; const date = new Date(dateString); if (isNaN(date.getTime())) { return ''; // Return empty string if date is invalid } const month = ('0' + (date.getMonth() + 1)).slice(-2); const day = ('0' + date.getDate()).slice(-2); const year = date.getFullYear(); return `${month}-${day}-${year}`; }; </script> <template> <v-card class="d-flex v-card w-100"> <div class="d-flex w-100 flex-column gap-5 pa-3"> <div class="d-flex justify-space-between"> {{ data.description }} </div> <div class="w-100 d-flex justify-space-between align-center"> <p class="type-text">{{ data.category.name }}</p> <p class="sent-text" v-if="formatDate(data.created_at)">Sent: {{ formatDate(data.created_at) }}</p> </div> </div> </v-card> </template> <style lang="scss"> .v-card { .v-card { background: #FCEFCC; box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); } } .type-text { font-size: 1em; color: rgba(0, 0, 0, 0.80); font-weight: 500; margin: 0; } .sent-text { font-size: 0.75em; color: rgba(0, 0, 0, 0.66); font-weight: 400; margin: 0; } </style> - Assistant