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'; +}); +