From 0eb7fd7171e71b51fdfe2666b2c6ab06244ff9e2 Mon Sep 17 00:00:00 2001 From: M-Gabrielly Date: Wed, 3 Dec 2025 22:40:47 -0300 Subject: [PATCH] fix: responsiveness of the "Foto do Perfil" card profile page --- susconecta/app/paciente/page.tsx | 2 +- susconecta/components/ui/upload-avatar.tsx | 28 ++++++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/susconecta/app/paciente/page.tsx b/susconecta/app/paciente/page.tsx index 1e7bb6a..a3e7245 100644 --- a/susconecta/app/paciente/page.tsx +++ b/susconecta/app/paciente/page.tsx @@ -1889,7 +1889,7 @@ export default function PacientePage() {

Foto do Perfil

{isEditingProfile ? ( -
+
-
- +
+
+ {initials} +
-
-
+
+
+
{currentAvatarUrl && ( @@ -101,10 +103,10 @@ export function UploadAvatar({ userId, currentAvatarUrl, onAvatarChange, userNam variant="outline" size="sm" onClick={handleDownload} - className="transition duration-200 hover:bg-primary/10 hover:text-primary dark:hover:bg-accent dark:hover:text-accent-foreground" + className="transition duration-200 hover:bg-blue-500 hover:text-white dark:hover:bg-blue-600 dark:hover:text-white text-xs sm:text-sm" > - - Download + + Download )}
@@ -118,8 +120,8 @@ export function UploadAvatar({ userId, currentAvatarUrl, onAvatarChange, userNam disabled={isUploading} /> -

- Formatos aceitos: JPG, PNG, WebP (máx. 2MB) +

+ Formatos: JPG, PNG, WebP (máx. 2MB)

{error && (