feat: add loading fade effect to ContactDetailView and adjust FormItem width in ContactForm

This commit is contained in:
Abhinav Raut
2025-09-14 21:43:40 +05:30
parent 6f300bb073
commit b7092744fd
3 changed files with 10 additions and 2 deletions

View File

@@ -184,6 +184,10 @@
@apply border shadow rounded;
}
.loading-fade {
@apply opacity-50 transition-opacity duration-300
}
// Scrollbar start
::-webkit-scrollbar {
width: 8px; /* Adjust width */

View File

@@ -42,7 +42,7 @@
<div class="flex flex-col flex-1">
<div class="flex items-end">
<FormField v-slot="{ componentField }" name="phone_number_country_code">
<FormItem class="w-max-content">
<FormItem class="w-max">
<FormLabel class="flex items-center whitespace-nowrap">
{{ t('globals.terms.phoneNumber') }}
</FormLabel>

View File

@@ -5,7 +5,11 @@
<CustomBreadcrumb :links="breadcrumbLinks" />
</div>
<div v-if="contact" class="flex justify-center space-y-4 w-full">
<div
v-if="contact"
class="flex justify-center space-y-4 w-full"
:class="{ 'loading-fade': formLoading }"
>
<div class="flex flex-col w-full mt-12">
<div class="flex flex-col space-y-2">
<AvatarUpload