fix: use expansion panel for logs #1420

This commit is contained in:
Daan Wijns 2024-01-13 11:17:21 +01:00
parent 53fe2e55b6
commit 6979c493ca

View file

@ -115,9 +115,19 @@ onUnmounted(() => {
<template v-for="(log, index) in paginatedResults">
<v-divider v-if="index > 0" />
<v-list-item :class="getLogTypeClassName(log)">
<v-list-item-title>{{ log.id }}) {{ log.message }}</v-list-item-title>
<v-list-item-subtitle>{{ getLogTypeName(log) }} | {{ formatLogTimestamp(log) }}</v-list-item-subtitle>
<v-list-item :class="getLogTypeClassName(log)" class="pa-0">
<v-expansion-panels class="p-0">
<v-expansion-panel class="pa-0">
<v-expansion-panel-title>
<template v-slot:default>
<v-list-item-title>[{{ log.id }}] {{ log.message }}</v-list-item-title>
<v-spacer />
<v-list-item-subtitle>{{ getLogTypeName(log) }} | {{ formatLogTimestamp(log) }}</v-list-item-subtitle>
</template>
</v-expansion-panel-title>
<v-expansion-panel-text>{{ log.message }}</v-expansion-panel-text>
</v-expansion-panel>
</v-expansion-panels>
</v-list-item>
</template>