chore: Minor fix

This commit is contained in:
iamsivin
2025-01-31 21:56:36 +05:30
parent b1ffce88e2
commit 4f48d52eba
2 changed files with 4 additions and 4 deletions
@@ -89,7 +89,7 @@ const files = computed(() => {
</div>
<div v-if="files.length" :class="classToApply">
<div className="grid grid-cols-2 xl:grid-cols-3 gap-3">
<div className="grid grid-cols-1 2xl:grid-cols-2 gap-3">
<FileChip
v-for="attachment in files"
:key="attachment.id"
@@ -49,8 +49,8 @@ const displayFileName = computed(() => {
: str;
return fileType.value
? `${truncatedName(name, 14, true)}.${fileType.value}`
: truncatedName(name, 16, false);
? `${truncatedName(name, 12, true)}.${fileType.value}`
: truncatedName(name, 14, false);
});
const textColorClass = computed(() => {
@@ -83,7 +83,7 @@ const textColorClass = computed(() => {
>
<FileIcon class="flex-shrink-0" :file-type="fileType" />
<span
class="flex-1 min-w-0 text-sm max-w-36"
class="flex-1 min-w-0 whitespace-nowrap overflow-hidden text-sm max-w-36"
:title="fileName"
:class="textColorClass"
>