From f91b5132974bfdbdc481443f6df2506d4efda31b Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Fri, 28 Aug 2026 11:48:13 +0000 Subject: [PATCH] feat: otimizacao de responsividade para celulares e tablets em todas as telas e modais --- src/client/components/Layout.tsx | 2 +- src/client/components/Modal.tsx | 12 +-- .../modals/CreatePaintingSchemeModal.tsx | 16 ++-- .../components/modals/CreateProjectModal.tsx | 10 +-- src/client/pages/AdminDashboard.tsx | 10 +-- src/client/pages/CalculatorDashboard.tsx | 18 ++--- src/client/pages/DeveloperDashboard.tsx | 12 +-- src/client/pages/ProjectDetails.tsx | 40 +++++----- src/client/pages/ProjectList.tsx | 34 ++++---- src/client/pages/YieldStudyDashboard.tsx | 78 ++++++++++--------- 10 files changed, 117 insertions(+), 115 deletions(-) diff --git a/src/client/components/Layout.tsx b/src/client/components/Layout.tsx index c994df1..83b8ccd 100644 --- a/src/client/components/Layout.tsx +++ b/src/client/components/Layout.tsx @@ -335,7 +335,7 @@ export const Layout: React.FC = ({ children }) => { "md:pl-68", // Push content on desktop "pt-16 md:pt-0" // Add padding on mobile for header )}> -
+
{children}
diff --git a/src/client/components/Modal.tsx b/src/client/components/Modal.tsx index d7648e5..a59bbd7 100644 --- a/src/client/components/Modal.tsx +++ b/src/client/components/Modal.tsx @@ -13,15 +13,15 @@ export const Modal: React.FC = ({ isOpen, onClose, title, children, if (!isOpen) return null; return ( -
-
-
-

{title}

-
-
+
{children}
diff --git a/src/client/components/modals/CreatePaintingSchemeModal.tsx b/src/client/components/modals/CreatePaintingSchemeModal.tsx index 431c8a1..a719c5c 100644 --- a/src/client/components/modals/CreatePaintingSchemeModal.tsx +++ b/src/client/components/modals/CreatePaintingSchemeModal.tsx @@ -242,7 +242,7 @@ export const CreatePaintingSchemeModal: React.FC required /> -
+
-
+
-
+
-
+
-
+
@@ -299,9 +299,9 @@ export const CreatePaintingSchemeModal: React.FC />
-
+

Planejamento de Consumo (Opcional)

-
+
= ({ isOpen, -
+
@@ -161,14 +161,14 @@ export const CreateProjectModal: React.FC = ({ isOpen, ) : (
-

Configurar Esquema de Pintura?

-

O projeto foi criado. Deseja adicionar um esquema de pintura agora?

+

Configurar Esquema de Pintura?

+

O projeto foi criado. Deseja adicionar um esquema de pintura agora?

-
+
{/* Content Area */} -
+
{activeTab === 'overview' && (
diff --git a/src/client/pages/ProjectDetails.tsx b/src/client/pages/ProjectDetails.tsx index eb64d6a..a1f5b47 100644 --- a/src/client/pages/ProjectDetails.tsx +++ b/src/client/pages/ProjectDetails.tsx @@ -201,17 +201,17 @@ export const ProjectDetails: React.FC = () => { return (
{/* Page Header */} -
-
+
+
-
-

{project.name}

- +
+

{project.name}

+ Em Andamento @@ -221,12 +221,12 @@ export const ProjectDetails: React.FC = () => {
M
G
- {project.client} • {project.environment} + {project.client} • {project.environment}
{isAdmin() && ( -
+
@@ -238,45 +238,45 @@ export const ProjectDetails: React.FC = () => {
{/* Premium Summary Grid */} -
+
-
+
Data de Início -

{project.startDate ? format(new Date(project.startDate), 'dd MMM, yyyy') : '-'}

+

{project.startDate ? format(new Date(project.startDate), 'dd MMM, yyyy') : '-'}

Previsão Término -

{project.endDate ? format(new Date(project.endDate), 'dd MMM, yyyy') : '-'}

+

{project.endDate ? format(new Date(project.endDate), 'dd MMM, yyyy') : '-'}

Peso da Obra (KGF) -

- {project.weightKg ? Number(project.weightKg).toLocaleString('pt-BR') : '0'} kg +

+ {project.weightKg ? Number(project.weightKg).toLocaleString('pt-BR') : '0'} kg

Evolução% -

+

{project.weightKg && project.paintedWeight !== undefined ? Math.min(Math.round((project.paintedWeight / project.weightKg) * 100), 100) : 0} - % + %

-
+
Localização/Amb. -

{project.environment || '-'}

+

{project.environment || '-'}

Eng. Responsável
-

{project.technician || '-'}

+

{project.technician || '-'}

@@ -284,7 +284,7 @@ export const ProjectDetails: React.FC = () => { {/* Navigation Tabs */}
-