Skip to content

Commit

Permalink
fix: attached file name overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Feb 19, 2024
1 parent efb0daa commit a89899a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/Controls/Attachment.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="flex flex-col text-base">
<div class="flex flex-col overflow-hidden text-base">
<span class="mb-2 block text-sm leading-4 text-gray-700">
{{ label || 'Attach File' }}
</span>
Expand All @@ -14,14 +14,14 @@
/>

<!-- Upload Button -->
<Button v-if="!file?.name" class="form-input h-7" @click="upload" :loading="uploading">
<Button v-if="!file?.name" @click="upload" :loading="uploading">
<FeatherIcon name="upload" class="mr-1 inline-block h-3 w-3" />
{{ placeholder || 'Upload a file' }}
</Button>

<!-- Clear Button -->
<Button v-else class="form-input h-7" iconRight="x" @click="clear">
{{ file.file_name }}
<Button v-else iconRight="x" @click="clear">
<span class="truncate">{{ file.file_name }}</span>
</Button>
</div>
</template>
Expand Down

0 comments on commit a89899a

Please sign in to comment.