chore(deploy): responsive mobile layout exact clone from mockup
continuous-integration/webhook Deploy concluído (VPS4)

This commit is contained in:
VPS 4 Deploy Agent
2026-06-03 19:53:53 +02:00
parent 1d30e34d0e
commit fb842d98a5
4 changed files with 157 additions and 294 deletions
@@ -1 +1 @@
2.1.69 1.0.8
+153 -290
View File
@@ -707,299 +707,162 @@ body {
/* ================================================================ /* ================================================================
RESPONSIVO — Tablet/Mobile (≤ 1023px) RESPONSIVO — Tablet/Mobile (≤ 1023px)
O visual desktop (≥ 1024px) permanece intacto. (Clone fiel do Mockup Mobile Alvo)
================================================================ */ ================================================================ */
@media (max-width: 1023px) { @media (max-width: 1023px) {
/* ---- Altura real em mobile (evita pulo da barra de URL) ---- */ /* ── App shell ── */
.app-container { height: 100dvh; } .app-container { flex-direction: column; height: 100%; background: #F4F5F8; padding-top: 50px; }
.main-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0; background: #F4F5F8; }
/* ---- Top bar fixo ---- */
.mobile-topbar { /* ── Topbar (Fixo) ── */
display: flex; align-items: center; gap: 12px; .mobile-topbar {
position: fixed; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between;
padding: 0 14px; z-index: 1000; padding: 8px 14px 10px; background: #FFFFFF; border-bottom: 1px solid #EBECF1;
background: var(--glass-bg); position: fixed; top: 0; left: 0; right: 0; height: 50px; z-index: 1000;
backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
border-bottom: 1px solid var(--glass-border); .mobile-hamburger {
box-shadow: var(--shadow-sm); width: 38px; height: 38px; border: none; background: transparent; cursor: pointer;
} font-size: 1.3rem; color: #15172B; display: flex; align-items: center; justify-content: center;
.mobile-hamburger { }
width: 42px; height: 42px; flex-shrink: 0; .mobile-topbar-brand {
border: none; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: #15172B;
font-size: 1.3rem; color: var(--dark-color); }
border-radius: 10px; display: flex; align-items: center; justify-content: center; .mobile-topbar-logo {
transition: background 0.2s; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#3B82F6,#6366F1);
} color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(79,70,229,.3);
.mobile-hamburger:active { background: rgba(0,0,0,0.06); } }
.mobile-topbar-brand {
display: flex; align-items: center; gap: 9px; /* ── Toolbar de Pesquisa (Header do Dashboard) ── */
font-family: var(--font-heading); font-weight: 700; .header {
font-size: 1.05rem; color: var(--dark-color); background: #FFFFFF; padding: 8px 14px 12px; border-bottom: 1px solid #EBECF1;
} display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
.mobile-topbar-logo { }
width: 30px; height: 30px; flex-shrink: 0; .header-content { flex-direction: column; align-items: stretch; gap: 10px; }
background: linear-gradient(135deg, #4cc9f0, var(--primary-color)); .header-left { display: none; } /* Ocultar título gigante do desktop */
border-radius: 8px; color: #fff; .header-actions { display: flex; flex-direction: column; gap: 10px; }
display: flex; align-items: center; justify-content: center; font-size: 15px;
} .search-input {
.mobile-topbar-spacer { margin-left: auto; } width: 100%; background: #F1F2F6; border-radius: 12px; padding: 10px 13px;
border: none; font-size: 15px; color: #15172B; outline: none; box-shadow: none;
/* ---- Sidebar vira drawer deslizante ---- */ }
.app-container { flex-direction: row; } .client-filter {
.sidebar { width: 100%; background: #F1F2F6; border-radius: 12px; padding: 10px 13px;
position: fixed; top: 0; left: 0; bottom: 0; border: none; font-size: 15px; color: #15172B; box-shadow: none; height: auto;
width: 280px; max-width: 84vw; height: 100dvh; }
transform: translateX(-105%);
transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); .content-scroll { padding: 0; flex: 1; }
z-index: 1200; box-shadow: var(--shadow-lg);
border-right: 1px solid var(--glass-border); /* ── Galeria Grid (Pacientes / Imagens) ── */
} .images-grid {
.sidebar--mobile-open { transform: translateX(0); } display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px;
}
.sidebar-backdrop { .patient-card, .image-card {
display: block; position: fixed; inset: 0; background: #FFFFFF; border-radius: 16px; overflow: hidden;
background: rgba(15,23,42,0.5); box-shadow: 0 1px 2px rgba(20,21,42,.04), 0 4px 14px rgba(20,21,42,.05);
backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); border: none; display: flex; flex-direction: column;
z-index: 1150; opacity: 0; pointer-events: none; }
transition: opacity 0.28s ease;
} .image-preview {
.sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; } position: relative; width: 100%; aspect-ratio: 1 / 0.82; height: auto; background: #0C1020;
}
.sidebar-header { position: relative; padding: 18px 20px; } .image-preview img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-close {
display: flex; align-items: center; justify-content: center; .image-info { padding: 9px 10px 11px; display: flex; flex-direction: column; }
position: absolute; top: 14px; right: 12px; .image-patient-name { font-weight: 700; font-size: 14.5px; color: #15172B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
width: 36px; height: 36px; border: none; background: transparent; .image-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #9295AD; font-weight: 500; margin-top: 3px; }
font-size: 1.2rem; color: var(--text-secondary); cursor: pointer; border-radius: 8px;
} /* Chips */
.sidebar-close:active { background: rgba(0,0,0,0.06); } .patient-count-badge {
position: absolute; bottom: 8px; left: 8px; right: auto; top: auto;
.nav-item { padding: 13px 14px; font-size: 1rem; } /* alvo de toque maior */ background: rgba(10,13,24,.62); backdrop-filter: blur(6px); color: #fff;
.nav-item:hover { transform: none; } /* sem deslocamento em touch */ font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px;
}
/* ---- Conteúdo principal abaixo do top bar ---- */ .image-badge {
.main-content { padding-top: 56px; } position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .2px;
.content-scroll { padding: 16px; } }
.delete-patient-btn { display: none; } /* Ocultar do grid mobile */
/* ---- Header da página: empilha, busca full-width ---- */ .image-doctor-remark { display: none; }
.header { padding: 12px 16px; }
.header-content { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; } /* ── Drawer Lateral (Sidebar) ── */
.header-left { flex: 1; min-width: 50%; } .sidebar {
.header h1 { font-size: 1.15rem; } position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 332px; height: 100%;
.header-actions { width: auto; flex: none; flex-wrap: nowrap; gap: 8px; align-items: center; } background: #FFFFFF; transform: translateX(-105%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
.search-input { min-width: 0; flex: 1 1 100%; width: 100%; font-size: 16px; } /* 16px evita zoom iOS */ z-index: 1200; box-shadow: 0 0 60px rgba(0,0,0,.28); border: none; padding: 0; display: flex; flex-direction: column;
.client-filter { flex: 1 1 100%; min-width: 0; width: 100%; } }
.sidebar--mobile-open { transform: translateX(0); }
/* Alterna ações entre desktop (linha) e mobile (dropdown) */
.hide-mobile { display: none !important; } .sidebar-backdrop {
.show-mobile { display: inline-flex !important; } display: block; position: fixed; inset: 0; background: rgba(10,13,24,.38);
backdrop-filter: blur(2px); z-index: 1150; opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
.mobile-icon-actions { display: flex !important; gap: 6px; align-items: center; } }
.btn-icon { .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }
width: 40px !important;
height: 40px !important; .sidebar-header {
border-radius: 50% !important; display: flex; align-items: center; gap: 10px; padding: 52px 14px 16px; border-bottom: 1px solid #EBECF1; flex-shrink: 0; background: #fff;
display: flex !important; }
align-items: center; .sidebar-header h2 { font-size: 16px; color: #15172B; margin: 0; flex: 1; display: flex; align-items: center; gap: 8px; }
justify-content: center; .sidebar-header h2 span { font-size: 11px; font-weight: 700; color: #9295AD; background: #F1F2F6; padding: 2px 7px; border-radius: 6px; }
padding: 0 !important;
font-size: 1.2rem; .logo-icon { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
background: var(--bg-surface);
border: 1px solid var(--border-color); .sidebar-close {
color: var(--text-primary); width: 36px; height: 36px; border: none; background: transparent; font-size: 1.2rem; color: #9295AD; cursor: pointer; display: flex; align-items: center; justify-content: center;
} }
.btn-icon:active { background: var(--hover-color); transform: scale(0.95); }
.sidebar-nav { padding: 6px 12px 12px; flex: 1; overflow-y: auto; }
/* ---- Grid de cards: thumbnails menores ---- */
.images-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; } .nav-section-title {
.image-preview { height: 150px; } font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #9295AD; padding: 16px 12px 8px; margin: 0; opacity: 1;
.image-info { padding: 12px; } }
.image-patient-name { font-size: 0.95rem; }
.nav-item {
/* ================================================================ display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 13px; font-weight: 600; font-size: 15.5px; color: #15172B; background: transparent; width: 100%; text-align: left; margin-bottom: 2px;
TABELAS → CARDS EMPILHADOS }
Aplicado a tabelas com a classe .responsive-table .nav-item.active { background: #4F46E5; color: #fff !important; box-shadow: 0 6px 16px rgba(79,70,229,.3); }
================================================================ */ .nav-item i { font-size: 18px; width: 22px; text-align: center; }
.responsive-table thead { display: none; }
.responsive-table, .sidebar-footer { padding: 12px 16px 26px; border-top: 1px solid #EBECF1; flex-shrink: 0; background: #fff; }
.responsive-table tbody, .logout-btn {
.responsive-table tr, display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 13px; border: 1.5px solid #EBECF1; background: transparent; color: #454867; font-weight: 700; font-size: 15px;
.responsive-table td { display: block; width: 100%; } }
.responsive-table tr { /* ── Modais e Tabelas (Adaptação Geral) ── */
background: var(--bg-surface) !important; .modal-overlay { align-items: flex-end; padding: 0; }
border: 1px solid var(--border-color) !important; .modal-content, .modal-large {
border-radius: var(--radius) !important; width: 100% !important; max-height: 90vh !important; height: auto !important;
box-shadow: var(--shadow-sm); border-radius: 24px 24px 0 0 !important; background: #FFFFFF; padding: 8px 14px 30px; box-shadow: 0 -8px 40px rgba(0,0,0,.25);
margin-bottom: 12px; padding: 6px 4px; overflow: hidden; }
} .modal-header { padding: 12px 4px 16px; border: none; }
.responsive-table tr:hover { background: var(--bg-surface) !important; } .modal-header h2 { font-weight: 800; font-size: 16px; color: #15172B; }
.modal-body { padding: 0; }
.responsive-table td {
display: flex; align-items: center; justify-content: space-between; .form-control, .form-group input, .form-group select, .form-group textarea {
gap: 14px; text-align: right; width: 100%; border: 1.5px solid #EBECF1; border-radius: 12px; padding: 13px 14px; font-size: 15px; color: #15172B; background: #FBFBFD; outline: none;
padding: 9px 14px !important; }
border: none !important; .form-control:focus, .form-group input:focus { border-color: #4F46E5; background: #fff; box-shadow: none; }
max-width: none !important; white-space: normal !important; .form-group label { font-size: 13.5px; font-weight: 700; color: #15172B; }
overflow: visible !important;
} .btn { min-height: 44px; border-radius: 12px; font-size: 15px; }
.responsive-table td::before { .form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
content: attr(data-label); .form-actions .btn { width: 100%; }
font-weight: 700; font-size: 0.7rem;
text-transform: uppercase; letter-spacing: 0.04em; /* Esconder tabela complexa e mostrar cards simples no admin/clientes */
color: var(--text-secondary); .responsive-table thead { display: none; }
text-align: left; flex-shrink: 0; white-space: nowrap; .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
} .responsive-table tr { background: #FFFFFF; border-radius: 14px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(20,21,42,.04); border: none; }
/* Células sem rótulo (thumb/avatar) ocupam o topo, centralizadas */ .responsive-table td { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 !important; border: none !important; }
.responsive-table td[data-label=""]::before { display: none; } .responsive-table td::before { content: attr(data-label); font-size: 12px; color: #9295AD; font-weight: 600; }
.responsive-table td[data-label=""] { justify-content: center; padding-top: 12px !important; }
/* Célula de ações: botões espalhados, ocupando largura */ /* Viewer */
.responsive-table td[data-label="Ações"] { justify-content: flex-end; flex-wrap: wrap; } .new-transform-layout { flex-direction: column; padding: 0; background: #05070e; min-height: 100vh; }
.transform-panel { width: 100%; max-width: 100%; border: none; border-radius: 0; background: transparent; padding: 0; flex: 1; display: flex; align-items: center; justify-content: center; }
/* ---- Stat cards (filtros GTO) encolhem ---- */ .transform-panel img { max-width: 95%; max-height: 95%; }
.stat-card-row { gap: 10px !important; } .transform-sidebar { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; flex-direction: row; justify-content: space-evenly; background: #15172B; border: none; border-radius: 20px 20px 0 0; padding: 16px 16px 30px; }
.stat-card-row > * { min-width: 0 !important; flex: 1 1 30% !important; padding: 12px !important; } .sidebar-btn { width: auto; height: auto; border: none; background: transparent; color: #fff; border-radius: 0; gap: 6px; }
.sidebar-btn .icon { font-size: 20px; margin: 0; }
/* ---- Paginação: centraliza e quebra linha ---- */ .sidebar-btn .label { font-size: 11px; font-weight: 500; color: #9295AD; }
.pagination-bar { flex-direction: column !important; gap: 10px !important; align-items: center !important; }
.pagination-controls { flex-wrap: wrap; justify-content: center; }
/* ---- Modais: tela cheia ---- */
.modal-overlay { align-items: stretch; }
.modal-content, .modal-large {
width: 100% !important; height: 100dvh !important;
max-width: 100% !important; border-radius: 0 !important;
}
/* ---- Modal header compacto ---- */
.modal-header { padding: 12px 16px; }
.modal-header h2 {
font-size: 0.95rem;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
max-width: 55vw;
}
.modal-title-group {
flex-wrap: wrap; gap: 8px;
width: 100%;
}
.modal-actions-group { gap: 4px; }
.modal-actions-group .btn { width: 36px; height: 36px; font-size: 1rem; }
.modal-body { padding: 12px; }
/* ---- TransformModal: layout mobile otimizado ---- */
.new-transform-layout {
flex-direction: column; align-items: center;
gap: 12px; padding: 8px 0; min-height: auto;
}
.transform-panel {
max-width: 100%; width: 100%;
padding: 8px; border-radius: var(--radius-sm);
}
.transform-panel .img-container {
max-height: none; aspect-ratio: auto;
min-height: 200px;
}
.transform-panel img {
max-width: 90%; max-height: 90%;
}
/* Painel original oculto por padrão no mobile (mostrado via CollapsibleSection) */
.transform-panel.panel-original.mobile-collapsible {
display: none;
}
.panel-title { font-size: 0.85rem; margin-bottom: 8px; }
/* Barra de controles de rotação — horizontal fixa no bottom */
.transform-sidebar {
width: 100%; flex-direction: row;
border-radius: var(--radius-lg);
justify-content: space-around;
padding: 10px; gap: 6px;
position: sticky; bottom: 0;
z-index: 10;
background: var(--bg-surface);
border: 1px solid var(--border-color);
box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.sidebar-btn { width: 48px; height: 48px; }
.sidebar-btn .icon { font-size: 1rem; }
.sidebar-btn .label { font-size: 0.6rem; }
.fine-tune-display { margin: 0 !important; min-width: 50px; }
/* Área de ação do transform — compacta */
.transform-action-area {
margin-top: 12px; padding: 12px;
border-radius: var(--radius-sm);
}
/* Escolha de orientação — thumbnails */
.transform-choose-grid {
grid-template-columns: repeat(4, 1fr) !important;
gap: 8px !important;
}
/* ---- GTO dentro do TransformModal: cards compactos ---- */
.gto-create-section { padding: 14px; }
.gto-create-section .form-actions-inline {
flex-direction: column;
}
.gto-create-section .form-control { width: 100% !important; flex: none !important; }
.gto-link-section { flex-direction: column; gap: 10px; align-items: stretch; }
/* ---- Cards de paciente: ocultar remark no mobile ---- */
.image-doctor-remark { display: none; }
/* ---- Extra info panel compacto ---- */
.extra-info-panel { padding: 10px 14px; font-size: 0.85rem; margin-bottom: 12px; }
/* ---- Botões maiores para toque ---- */
.btn { min-height: 40px; }
/* ---- Form actions empilham no mobile ---- */
.form-actions-inline { flex-direction: column; gap: 8px; }
.form-actions-inline .btn { width: 100%; }
/* ---- Toast no mobile ---- */
.toast-container { bottom: 16px; right: 16px; left: 16px; }
.toast { max-width: 100%; font-size: 0.9rem; padding: 12px 16px; }
} }
/* ================================================================
RESPONSIVO — Celular (≤ 480px)
================================================================ */
@media (max-width: 480px) { @media (max-width: 480px) {
.content-scroll { padding: 12px; } /* Os estilos acima já cobrem celular */
.images-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.image-preview { height: 130px; }
.image-info { padding: 10px; }
.image-patient-name { font-size: 0.85rem; }
.image-meta { font-size: 0.75rem; }
.stat-card-row > * { flex: 1 1 100% !important; }
.header h1 { font-size: 1.15rem; }
.modal-header h2 { font-size: 0.9rem; max-width: 45vw; }
.modal-actions-group .btn { width: 32px; height: 32px; font-size: 0.9rem; }
/* TransformModal — preview ainda maior */
.transform-panel img { max-width: 95%; max-height: 95%; }
.sidebar-btn { width: 44px; height: 44px; }
/* Paginação: só anterior/próximo */
.pagination-controls .btn:not(:first-child):not(:last-child) { display: none; }
/* Collapsible mais compacto */
.collapsible-header { padding: 10px 12px; font-size: 0.78rem; }
.collapsible-body { padding: 0 12px 12px; }
}
/* ================================================================
RESPONSIVO — Celular pequeno (≤ 360px / 320px)
================================================================ */
@media (max-width: 360px) {
.content-scroll { padding: 10px; }
.images-grid { grid-template-columns: 1fr; }
.image-preview { height: 160px; }
.mobile-topbar-brand span:not(.mobile-topbar-logo) { font-size: 0.95rem; }
.responsive-table td { font-size: 0.85rem; }
.btn { font-size: 0.88rem; padding: 9px 14px; }
.sidebar-btn { width: 40px; height: 40px; }
.sidebar-btn .label { display: none; }
} }
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "dental-image-server", "name": "dental-image-server",
"version": "2.1.4", "version": "2.1.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "dental-image-server", "name": "dental-image-server",
"version": "2.1.4", "version": "2.1.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.1055.0", "@aws-sdk/client-s3": "^3.1055.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dental-image-server", "name": "dental-image-server",
"version": "2.1.4", "version": "2.1.5",
"description": "Servidor Socket.IO para receber e processar imagens dentais com interface web", "description": "Servidor Socket.IO para receber e processar imagens dentais com interface web",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {