Use overlay buttons to change avatar

This commit is contained in:
Eli Ribble 2026-03-28 17:23:09 -07:00
parent 15371ec064
commit 92ed974e4b
No known key found for this signature in database

View file

@ -52,6 +52,13 @@ pre {
alt="User Avatar"
class="rounded-circle avatar-preview"
/>
<button
class="btn btn-sm btn-danger position-absolute bottom-0 start-0 rounded-circle"
@click="removeAvatar"
type="button"
>
<i class="bi bi-trash"></i>
</button>
<button
class="btn btn-sm btn-primary position-absolute bottom-0 end-0 rounded-circle"
@click="triggerFileInput"
@ -68,21 +75,6 @@ pre {
accept="image/*"
@change="handleAvatarChange"
/>
<button
class="btn btn-outline-primary btn-sm me-2"
@click="triggerFileInput"
type="button"
>
Upload New
</button>
<button
class="btn btn-outline-danger btn-sm"
@click="removeAvatar"
type="button"
:disabled="!user.avatar"
>
Remove
</button>
</div>
</div>
</div>