From 7c9322d52ca971769010817340d326e1b3ddbffa Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 24 Oct 2023 12:49:36 +0200 Subject: [PATCH 01/25] refs #6256 lv breakword --- src/components/ui/CardSummary.vue | 6 +++-- src/components/ui/VnLv.vue | 26 +++++++++++++++++++-- src/pages/Customer/Card/CustomerSummary.vue | 2 +- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index b54e44398..a95cc414b 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -93,7 +93,7 @@ watch(props, async () => { flex: 2; } > .q-card.vn-three { - flex: 3; + flex: 4; } > .q-card.vn-max { width: 100%; @@ -112,11 +112,13 @@ watch(props, async () => { margin-top: 5px; .label { color: var(--vn-label); - width: 10em; + width: 8em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-right: 10px; + flex-grow: 0; + flex-shrink: 0; } .value { color: var(--vn-text); diff --git a/src/components/ui/VnLv.vue b/src/components/ui/VnLv.vue index 0f9b99713..3863b4f30 100644 --- a/src/components/ui/VnLv.vue +++ b/src/components/ui/VnLv.vue @@ -9,14 +9,36 @@ const $props = defineProps({ titleValue: { type: [Number, String, Boolean], default: null }, info: { type: String, default: null }, dash: { type: Boolean, default: true }, + textOverflow: { type: String, default: 'ellipsis' }, }); const isBooleanValue = computed(() => typeof $props.value === 'boolean'); +const textOverflowClass = computed(() => { + if ($props.textOverflow === 'ellipsis') return 'line-break-text'; + return 'ellipsis-text'; +}); +