I don't want regular text clamp, because I don't want something like this: Really long sentence ---> Really long.... I want to get only 3 dots like .... I already tried with
.truncate-text {
display: inline-block;
white-space: nowrap;
overflow: hidden !important;
text-overflow: ellipsis;
}
Is there any other solution?
My code
<div class="w-12/12">
<p class="font-medium text-14 text-color-primary max-w-860 truncate-text">
<span v-for="tag in tags" :key="tag.id" class="pr-2">
#{{ tag.name }}
</span>
</p>
</div>