From 3ca89ab21c31a791a14a85640efaf8029f852125 Mon Sep 17 00:00:00 2001 From: VPS 4 Builder Date: Mon, 6 Jul 2026 23:01:51 +0200 Subject: [PATCH] =?UTF-8?q?feat(salas):=20melhora=20visual=20e=20distribui?= =?UTF-8?q?=C3=A7=C3=A3o=20de=20Minhas=20Salas=20/=20Alugar=20/=20Marketpl?= =?UTF-8?q?ace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Abas viram segmented control: no mobile ocupam a largura toda e distribuem igual; no desktop encolhem ao conteúdo (some quando há só 1 aba). - "Cadastrar Sala" ganha toolbar (contagem à esquerda, botão à direita no desktop, largura cheia no mobile) em vez de botão solto. - Filtros do marketplace: grid 2/3/6 colunas (distribui uniforme) e BUSCAR full-width no mobile. - Cards de sala: 3 colunas em telas largas (xl). Co-Authored-By: Claude Opus 4.8 --- frontend/views/plugins/SalasPlugin.tsx | 58 +++++++++++++++----------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/frontend/views/plugins/SalasPlugin.tsx b/frontend/views/plugins/SalasPlugin.tsx index 4531832..9152203 100644 --- a/frontend/views/plugins/SalasPlugin.tsx +++ b/frontend/views/plugins/SalasPlugin.tsx @@ -641,23 +641,26 @@ export const SalasPlugin: React.FC<{ view?: 'minhas' | 'alugar' }> = ({ view }) : 'Alugue salas equipadas ou disponibilize as suas para outros profissionais.'} /> - {/* Tabs */} -
- {TABS.map(t => { - const Icon = t.icon; - const active = tab === t.id; - return ( - - ); - })} -
+ {/* Tabs — segmented control: no mobile ocupa a largura toda e distribui igual; + no desktop encolhe ao conteúdo. */} + {TABS.length > 1 && ( +
+ {TABS.map(t => { + const Icon = t.icon; + const active = tab === t.id; + return ( + + ); + })} +
+ )} {/* MARKETPLACE */} {tab === 'marketplace' && enderecoOk === false && ( @@ -666,7 +669,7 @@ export const SalasPlugin: React.FC<{ view?: 'minhas' | 'alugar' }> = ({ view }) {tab === 'marketplace' && enderecoOk !== false && ( <>
-
+