From 4a7f6bb5f0622255e926fe630521a5e4258919c9 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Fri, 17 Oct 2025 16:55:50 -0600 Subject: [PATCH] =?UTF-8?q?Refactor:=20Simplificar=20secci=C3=B3n=20de=20f?= =?UTF-8?q?oto=20de=20perfil=20en=20formulario?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Mover sección de foto de perfil al primer lugar del formulario - Eliminar preview del avatar (MsnAvatar) - no repetir - Simplificar botones: más compactos (size="sm", iconos w-4 h-4) - Eliminar card/container extra (.avatar-section) con background y padding - Nueva clase simple .avatar-actions-simple con solo flex y gap - Limpiar estilos CSS no utilizados (avatar-section, avatar-preview, avatar-actions) --- nuxt4/app/components/UserProfileForm.vue | 112 +++++++---------------- 1 file changed, 33 insertions(+), 79 deletions(-) diff --git a/nuxt4/app/components/UserProfileForm.vue b/nuxt4/app/components/UserProfileForm.vue index 90f25b8..9e9ef12 100644 --- a/nuxt4/app/components/UserProfileForm.vue +++ b/nuxt4/app/components/UserProfileForm.vue @@ -18,6 +18,37 @@
+ +
+

+ + Foto de Perfil +

+
+ + + {{ currentAvatar && currentAvatar.includes('/avatars/') ? 'Cambiar foto' : 'Tomar foto' }} + + + + + Eliminar + +
+
+

@@ -159,53 +190,6 @@ /> Próximamente disponible

- - -
- - -
- -
- -
- - -
- - - {{ currentAvatar ? 'Cambiar foto' : 'Tomar foto' }} - - - - - Eliminar - -
-
- - - Usa la cámara para tomar una foto de perfil personalizada - -
@@ -567,26 +551,10 @@ const removeAvatar = async () => { font-style: italic; } -.avatar-section { +.avatar-actions-simple { display: flex; - align-items: center; - gap: 2rem; - padding: 1rem; - background: rgba(255, 255, 255, 0.5); - backdrop-filter: blur(10px); - border-radius: 1rem; - border: 1px solid rgba(0, 0, 0, 0.05); -} - -.avatar-preview { - flex-shrink: 0; -} - -.avatar-actions { - display: flex; - flex-direction: column; gap: 0.75rem; - flex: 1; + flex-wrap: wrap; } .camera-modal { @@ -645,15 +613,6 @@ const removeAvatar = async () => { .form-actions { flex-direction: column; } - - .avatar-section { - flex-direction: column; - text-align: center; - } - - .avatar-actions { - width: 100%; - } } @@ -688,11 +647,6 @@ const removeAvatar = async () => { border-top-color: rgba(255, 255, 255, 0.1); } -.dark .avatar-section { - background: rgba(255, 255, 255, 0.05) !important; - border-color: rgba(255, 255, 255, 0.1) !important; -} - .dark .modal-title { color: var(--color-gray-100) !important; }