From 78f14672f80f224eec7b67a20f3523276e731122 Mon Sep 17 00:00:00 2001 From: Marcos Reifonas Date: Tue, 22 Sep 2026 01:28:07 +0000 Subject: [PATCH] style: compactar botoes voltar e completo para ampliar visibilidade da OF --- src/pages/smart/components/SmartHeader.tsx | 35 +++++++++++----------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/pages/smart/components/SmartHeader.tsx b/src/pages/smart/components/SmartHeader.tsx index c8d4dfd..616dc17 100644 --- a/src/pages/smart/components/SmartHeader.tsx +++ b/src/pages/smart/components/SmartHeader.tsx @@ -47,9 +47,9 @@ export const SmartHeader: React.FC = ({ return (
-
+
{/* Lado Esquerdo: Botão Voltar ou Logo/Status */} -
+
{mostrarVoltar && onVoltar ? ( ) : ( @@ -69,12 +69,12 @@ export const SmartHeader: React.FC = ({ -
-

+
+

{titulo}

{subtitulo && ( -

+

{subtitulo}

)} @@ -83,12 +83,12 @@ export const SmartHeader: React.FC = ({ )} {mostrarVoltar && ( -
-

+
+

{titulo}

{subtitulo && ( -

+

{subtitulo}

)} @@ -97,19 +97,19 @@ export const SmartHeader: React.FC = ({
{/* Lado Direito: Ações de Controle e Comutação */} -
+
{/* Controle de Som / Áudio */} {/* BOTÃO CRUCIAL DE COMUTAÇÃO: VOLTAR AO MODO COMPLETO */} @@ -117,19 +117,18 @@ export const SmartHeader: React.FC = ({ type="button" variant="outline" onClick={handleVoltarAoModoCompleto} - className="h-10 px-3 gap-1.5 bg-blue-600 hover:bg-blue-500 text-white border-blue-500 hover:border-blue-400 font-bold text-xs sm:text-sm rounded-xl shadow-sm active:scale-95 transition-all" + className="h-10 px-2 sm:px-2.5 gap-1 bg-blue-600 hover:bg-blue-500 text-white border-blue-500 hover:border-blue-400 font-bold text-xs rounded-xl shadow-sm active:scale-95 transition-all shrink-0" title="Sair do Modo Smart e abrir o sistema completo (Dashboard / 3D / Cadastros)" > - - Modo Completo - Completo + + Completo {/* Botão de Logout */}