Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Jul 28, 2024
1 parent 19bbc30 commit 7dc03de
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Frontend/src/components/LetterWithEnvelope.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ defineProps<Props>()
dominant-baseline="middle"
text-anchor="middle"
style="font:italic 1.0px sans-serif;"
>{{ returnPath }}</text>
>{{ returnPath?.slice(-36) }}</text>
</g>
</svg>
</template>
37 changes: 24 additions & 13 deletions src/Frontend/src/components/MailFlowTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const columns : QTableProps['columns'] = [
align: 'left',
label: 'Time (UTC)',
field: 'dateTime',
sortable: false
sortable: false,
style: 'min-width: 170px;'
},
{
name: 'delay',
Expand All @@ -53,43 +54,48 @@ const columns : QTableProps['columns'] = [
align: 'left',
label: 'Receiving host (By)',
field: 'by',
sortable: false
sortable: false,
style: 'max-width: 400px; white-space: pre-line;'
},
{
name: 'from',
align: 'left',
label: 'Sending host (From)',
field: 'from',
sortable: false
sortable: false,
style: 'max-width: 400px; white-space: pre-line;'
},
{
name: 'via',
align: 'left',
label: 'Via',
field: 'via',
sortable: false
sortable: false,
style: 'max-width: 400px; white-space: pre-line;'
},
{
name: 'with',
align: 'left',
label: 'With',
field: 'with',
sortable: false,
style: 'white-space: pre-wrap;'
style: 'max-width: 400px; white-space: pre-line;'
},
{
name: 'id',
align: 'left',
label: 'Id',
field: 'id',
sortable: false
sortable: false,
style: 'max-width: 400px; white-space: pre-line;'
},
{
name: 'for',
align: 'left',
label: 'For',
field: 'for',
sortable: false
sortable: false,
style: 'max-width: 400px; white-space: pre-line;'
}
]
Expand Down Expand Up @@ -120,24 +126,29 @@ function formatDate (date: Date): string {
hide-bottom
>
<template #body-cell-dateTime="props">
<q-td>
<q-td :props="props">
{{ formatDate(props.row.dateTime) }}
</q-td>
</template>
<template #body-cell-by="props">
<q-td>
{{ props.row.byDomain }}<br>
{{ props.row.byIpAddress }}
<q-td :props="props">
<template v-if="props.row.byDomain">
{{ props.row.byDomain }}<br>
{{ props.row.byIpAddress }}
</template>
<template v-else>
{{ props.row.rawHeaderDetails.headerData }}
</template>
</q-td>
</template>
<template #body-cell-from="props">
<q-td>
<q-td :props="props">
{{ props.row.fromDomain }}<br>
{{ props.row.fromIpAddress }}
</q-td>
</template>
<template #body-cell-delay="props">
<q-td>
<q-td :props="props">
<template v-if="delays[props.rowIndex] !== undefined">
{{ delays[props.rowIndex].toFixed(1) }}s
</template>
Expand Down

0 comments on commit 7dc03de

Please sign in to comment.