0
0
Fork 0

fix: refs #7197 responsive summary layout

This commit is contained in:
Jorge Penadés 2024-07-04 13:56:16 +02:00
parent 4d6e2e2774
commit 8957141222
2 changed files with 13 additions and 21 deletions

View File

@ -151,6 +151,11 @@ select:-webkit-autofill {
background-color: var(--vn-section-color);
}
.q-table td[shrink] {
text-overflow: ellipsis;
overflow: hidden;
max-width: 80px;
}
.tr-header {
color: var(--vn-label-color);
}

View File

@ -30,6 +30,7 @@ const vatColumns = ref([
field: (row) => row.expenseFk,
sortable: true,
align: 'left',
classes: 'expand',
},
{
name: 'landed',
@ -339,14 +340,14 @@ const getLink = (param) => `#/invoice-in/${entityId.value}/${param}`;
</QTh>
</QTr>
</template>
<template #body-cell-transaction="{ value: transactionCell }">
<QTd :title="transactionCell">
{{ transactionCell }}
<template #body-cell-vat="{ value: vatCell }">
<QTd :title="vatCell" shrink>
{{ vatCell }}
</QTd>
</template>
<template #body-cell-vat="{ value: vatCell }">
<QTd :title="vatCell">
{{ vatCell }}
<template #body-cell-transaction="{ value: transactionCell }">
<QTd :title="transactionCell" shrink>
{{ transactionCell }}
</QTd>
</template>
<template #bottom-row>
@ -430,20 +431,6 @@ const getLink = (param) => `#/invoice-in/${entityId.value}/${param}`;
</CardSummary>
</template>
<style lang="scss" scoped>
.vat {
:deep(td:nth-child(3)),
:deep(td:nth-child(4)) {
overflow: hidden;
text-overflow: ellipsis;
}
:deep(td:nth-child(3)) {
max-width: 150px;
}
:deep(td:nth-child(4)) {
max-width: 200px;
}
}
.bg {
background-color: var(--vn-accent-color);
}
@ -451,7 +438,7 @@ const getLink = (param) => `#/invoice-in/${entityId.value}/${param}`;
color: var(--vn-text-color);
}
@media (min-width: $breakpoint-lg) {
@media (min-width: $breakpoint-md) {
.summaryBody {
.vat {
flex: 65%;