From bc041b8a56db8fdd6a4df8f4049233cb4fbe5f0c Mon Sep 17 00:00:00 2001 From: guilherme Date: Thu, 11 Dec 2025 12:17:29 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20alterar=20idioma=20do=20HTML=20para=20p?= =?UTF-8?q?t-br=20e=20refatorar=20o=20componente=20ProfileCard=20para=20me?= =?UTF-8?q?lhorar=20a=20apresenta=C3=A7=C3=A3o=20das=20m=C3=A9tricas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- src/views/components/ProfileCard.css | 11 +-- src/views/components/ProfileCard.jsx | 105 ++------------------------- 3 files changed, 12 insertions(+), 106 deletions(-) diff --git a/index.html b/index.html index c37d8fb..5df825d 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + diff --git a/src/views/components/ProfileCard.css b/src/views/components/ProfileCard.css index 03dbc32..cf2b2b6 100644 --- a/src/views/components/ProfileCard.css +++ b/src/views/components/ProfileCard.css @@ -379,7 +379,6 @@ .pc-details p { font-weight: 600; position: relative; - top: -12px; white-space: nowrap; font-size: 16px; margin: 0 auto; @@ -601,8 +600,12 @@ } .metric-content { - flex: 1; - min-width: 0; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + width: 100%; + border-radius: 0px; } .metric-value { @@ -612,8 +615,6 @@ -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; - line-height: 1; - margin-bottom: 4px; } .metric-label { diff --git a/src/views/components/ProfileCard.jsx b/src/views/components/ProfileCard.jsx index e7447fc..59b7332 100644 --- a/src/views/components/ProfileCard.jsx +++ b/src/views/components/ProfileCard.jsx @@ -381,110 +381,15 @@ const ProfileCardComponent = ({ -
-
-
- TOP 1 -

{topAppName || '—'}

-
-

- {topAppAcessos != null - ? `${topAppAcessos.toLocaleString('pt-BR')} acessos` - : 'Aplicação mais utilizada'} -

+
+
+

{topAppName || '—'}

+

Aplicação mais utilizada

- {/* Botões de compartilhamento */} - {showShareButtons && ( -
- - - - -
- )} +