fix(ui): optimizar UX y relacion de aspecto para tablets Samsung Galaxy Tab (acordeon polizas, cockpit 0-scroll y contraste)
This commit is contained in:
@@ -598,13 +598,30 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
|
||||
.desktop-top-header {
|
||||
height: 48px;
|
||||
background-color: #070D1E;
|
||||
border-bottom: 1px solid #14203B;
|
||||
background-color: var(--bg-surface, #070D1E);
|
||||
border-bottom: 1px solid var(--border-subtle, #14203B);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 16px;
|
||||
padding: 0 12px;
|
||||
flex-shrink: 0;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.desktop-top-header::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.desktop-top-header {
|
||||
padding: 0 8px;
|
||||
gap: 4px;
|
||||
}
|
||||
.desktop-tab-btn {
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.desktop-tab-btn {
|
||||
@@ -797,63 +814,90 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
RESPONSIVIDAD Y ERGONOMÍA PARA TABLETS SAMSUNG GALAXY TAB A11 (1340x800)
|
||||
RESPONSIVIDAD Y ERGONOMÍA PARA TABLETS SAMSUNG GALAXY TAB (16:10 - 1280x800 / 1340x800)
|
||||
============================================================================== */
|
||||
@media (max-width: 1180px) and (min-width: 961px) {
|
||||
|
||||
/* Modo Horizontal (Landscape) en Tablets y Escritorios (ancho >= 768px y orientacion landscape) */
|
||||
@media (orientation: landscape) and (min-width: 768px) {
|
||||
.desktop-cockpit-grid {
|
||||
grid-template-columns: 210px 1fr 195px !important;
|
||||
display: grid !important;
|
||||
grid-template-columns: 225px 1fr 220px !important;
|
||||
gap: 8px !important;
|
||||
padding: 6px 8px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modo Vertical (Portrait) en Tablets (Samsung Galaxy Tab 800x1340) -> 2 Columnas */
|
||||
@media (max-width: 960px) and (min-width: 680px) {
|
||||
.desktop-cockpit-grid {
|
||||
grid-template-columns: 270px 1fr !important;
|
||||
gap: 8px !important;
|
||||
padding: 8px 10px !important;
|
||||
padding-bottom: 64px !important;
|
||||
padding-bottom: 6px !important;
|
||||
height: calc(100vh - 48px) !important;
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
.desktop-column-actions {
|
||||
grid-column: span 2;
|
||||
display: flex !important;
|
||||
grid-column: auto !important;
|
||||
}
|
||||
.tablet-portrait-dock {
|
||||
display: none !important;
|
||||
}
|
||||
.desktop-card-action-buttons,
|
||||
.desktop-card-hardware-buttons {
|
||||
display: flex !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modo Smartphone o Pantalla Muy Estrecha (<680px) */
|
||||
@media (max-width: 679px) {
|
||||
/* Modo Horizontal en pantallas medianas / compactas (1024px a 1180px) */
|
||||
@media (orientation: landscape) and (max-width: 1180px) and (min-width: 840px) {
|
||||
.desktop-cockpit-grid {
|
||||
grid-template-columns: 1fr !important;
|
||||
gap: 10px !important;
|
||||
padding: 8px 10px !important;
|
||||
padding-bottom: 64px !important;
|
||||
grid-template-columns: 215px 1fr 205px !important;
|
||||
gap: 6px !important;
|
||||
padding: 4px 6px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modo Vertical (Portrait) en Tablets Samsung Galaxy Tab (ancho CSS 500px a 960px) -> 2 Columnas */
|
||||
@media (orientation: portrait) and (min-width: 500px), (max-width: 960px) and (orientation: portrait) {
|
||||
.desktop-cockpit-grid {
|
||||
display: grid !important;
|
||||
grid-template-columns: 245px 1fr !important;
|
||||
gap: 8px !important;
|
||||
padding: 6px 8px !important;
|
||||
padding-bottom: 70px !important;
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
.desktop-column-actions {
|
||||
display: none !important; /* Sus acciones están ancladas en tablet-portrait-dock */
|
||||
}
|
||||
.tablet-portrait-dock {
|
||||
display: flex !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modo Celular o Pantalla Ultra Angosta (<500px) */
|
||||
@media (max-width: 499px) {
|
||||
.desktop-cockpit-grid {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
gap: 8px !important;
|
||||
padding: 6px 8px !important;
|
||||
padding-bottom: 70px !important;
|
||||
overflow-y: auto !important;
|
||||
}
|
||||
.desktop-column-actions {
|
||||
display: none !important;
|
||||
}
|
||||
.tablet-portrait-dock {
|
||||
display: flex !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dock de Acciones Rápidas para Modo Vertical (Portrait) */
|
||||
.tablet-portrait-dock {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.tablet-portrait-dock {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
background-color: var(--bg-surface);
|
||||
border-top: 1px solid var(--border-strong);
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
/* Evitar repetición de botones en la tarjeta de acciones cuando el dock fijo está activo */
|
||||
.desktop-card-action-buttons,
|
||||
.desktop-card-hardware-buttons {
|
||||
display: none !important;
|
||||
}
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
background-color: var(--bg-surface);
|
||||
border-top: 1px solid var(--border-strong);
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user