Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions resources/js/pages/Profile/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const userInitials = computed(() => {
<!-- Loading Overlay -->
<div
v-if="isUpdatingAvatar || isRemovingAvatar"
class="absolute inset-0 flex items-center justify-center rounded-full bg-black/50"
class="absolute inset-0 flex items-center justify-center rounded-xl bg-black/50"
>
<Loader2
class="size-8 animate-spin text-white"
Expand All @@ -178,7 +178,7 @@ const userInitials = computed(() => {
!isRemovingAvatar
"
for="avatar-upload"
class="bg-primary text-primary-foreground absolute right-0 bottom-0 flex h-10 w-10 cursor-pointer items-center justify-center rounded-full shadow-md transition-transform hover:scale-110"
class="bg-primary text-primary-foreground absolute right-0 bottom-0 flex h-10 w-10 cursor-pointer items-center justify-center rounded-xl shadow-md transition-transform hover:scale-110"
>
<Camera class="h-5 w-5" />
</label>
Expand All @@ -192,7 +192,7 @@ const userInitials = computed(() => {
"
type="button"
@click="removeAvatar"
class="absolute right-0 bottom-0 flex h-10 w-10 items-center justify-center rounded-full bg-red-500 text-white shadow-md transition-transform hover:scale-110"
class="absolute right-0 bottom-0 flex h-10 w-10 items-center justify-center rounded-xl bg-red-500 text-white shadow-md transition-transform hover:scale-110"
>
<Trash2 class="h-5 w-5" />
</button>
Expand Down Expand Up @@ -239,7 +239,7 @@ const userInitials = computed(() => {
<Button
type="submit"
size="lg"
class="rounded-full"
class="rounded-xl"
>
{{ $t('Update Profile') }}
</Button>
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/tests/profile/avatar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test.describe('Profile Avatar', () => {
buffer: tinyPng,
});

const loadingOverlay = page.locator('div.rounded-full.bg-black\\/50');
const loadingOverlay = page.locator('div.rounded-xl.bg-black\\/50');

// Spinner must appear while the upload request is in flight
await expect(loadingOverlay).toBeVisible();
Expand All @@ -43,7 +43,7 @@ test.describe('Profile Avatar', () => {
});

// Wait for upload to complete
const loadingOverlay = page.locator('div.rounded-full.bg-black\\/50');
const loadingOverlay = page.locator('div.rounded-xl.bg-black\\/50');
await expect(loadingOverlay).toBeVisible();
await expect(loadingOverlay).not.toBeVisible({ timeout: 10000 });

Expand Down
Loading