feat: update styles

This commit is contained in:
Shivam Mishra
2024-12-12 13:35:34 +05:30
parent 974a9f00b9
commit 25d9588095
4 changed files with 6 additions and 11 deletions
@@ -29,14 +29,14 @@ const handleError = () => {
>
<div
v-if="hasError"
class="flex flex-col size-full justify-center text-xs items-center bg-n-alpha-1 gap-1 text-center rounded-lg text-n-slate-11"
class="flex flex-col items-center justify-center gap-1 text-xs text-center rounded-lg size-full bg-n-alpha-1 text-n-slate-11"
>
<Icon icon="i-lucide-circle-off" class="text-n-slate-11" />
{{ $t('COMPONENTS.MEDIA.LOADING_FAILED') }}
</div>
<img
v-else
class="w-full h-full object-cover"
class="object-cover w-full h-full"
:src="attachment.dataUrl"
@error="handleError"
/>
@@ -46,7 +46,7 @@ const handleError = () => {
v-model:show="showGallery"
:attachment="useSnakeCase(attachment)"
:all-attachments="filteredCurrentChatAttachments"
@error="onError"
@error="handleError"
@close="() => (showGallery = false)"
/>
</template>