From 887e95c6ca076cfab0e62c28af63074df5c14541 Mon Sep 17 00:00:00 2001 From: Ayron Santos Date: Wed, 17 Jun 2026 16:28:02 -0300 Subject: [PATCH] Torna a interface responsiva para celular e tablet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - main.css: media queries (1024/768/480) — sidebar vira barra horizontal, tabelas com rolagem, busca/modais adaptados - chat.html: layout de 3 colunas vira navegação de painel único no mobile (lista -> conversa com botão voltar; painel de info como overlay) - settings.html: abas com rolagem horizontal no celular Co-Authored-By: Claude Opus 4.8 (1M context) --- src/public/chat.html | 42 ++++++++++++++++++++ src/public/css/main.css | 84 ++++++++++++++++++++++++++++++++++++++++ src/public/settings.html | 6 +++ 3 files changed, 132 insertions(+) diff --git a/src/public/chat.html b/src/public/chat.html index 9fd2ca9..4899737 100644 --- a/src/public/chat.html +++ b/src/public/chat.html @@ -594,6 +594,35 @@ body { background:#f3f4f6; display:flex; height:100vh; overflow:hidden; } } .empty-state .icon { font-size: 52px; opacity: 0.45; } .empty-state p { font-size: 15px; color: #6b7280; } + +/* Botões só do mobile (voltar / info) */ +.mobile-only { display: none; } + +/* ===== RESPONSIVO: navegação de painel único (lista → conversa → info) ===== */ +@media (max-width: 768px) { + .sidebar-left { width: 100%; } + .chat-center { display: none; } + + /* Quando uma conversa está aberta, mostra o chat e esconde a lista */ + body.chat-aberto .sidebar-left { display: none; } + body.chat-aberto .chat-center { display: flex; } + + /* Painel de informações vira overlay deslizante (oculto por padrão) */ + .sidebar-right { + position: fixed; + top: 0; right: 0; bottom: 0; + width: 88%; max-width: 340px; + z-index: 1200; + box-shadow: -4px 0 24px rgba(0,0,0,0.28); + display: none !important; + } + body.info-aberto .sidebar-right { display: flex !important; } + + .mobile-only { display: inline-flex !important; align-items: center; justify-content: center; } + + .chat-header { gap: 8px; } + .chat-header .info h3 { font-size: 14px; } +}