[HOTFIX] Customers names on table list issue #210 (#310)

* Fix customer dropdown

* Fix #250
This commit is contained in:
mchev
2025-02-17 12:11:10 +01:00
committed by GitHub
parent 50b647e26e
commit 6b168f36ec

View File

@@ -1,10 +1,11 @@
<template>
<div class="whitespace-normal">
<BaseCustomTag :tag="tag" :title="text" class="line-clamp-1">
<BaseCustomTag :tag="tag" :title="props.text" class="line-clamp-1">
{{ displayText }}
</BaseCustomTag>
</div>
</template>
<script setup>
import { computed } from "vue"
@@ -25,13 +26,12 @@ const props = defineProps({
}
})
const { text, length } = props;
const displayText = computed(() => {
if (length) {
return text.length <= length ? text : `${text.substring(0, length)}...`;
if (props.length) {
return props.text.length <= props.length
? props.text
: `${props.text.substring(0, props.length)}...`
}
return text;
});
return props.text
})
</script>