fix(mobile): optimize mobile UI/UX for UdeCi chatbot and dashboard (v3.8.30)
This commit is contained in:
@@ -143,18 +143,132 @@
|
||||
border-color: rgba(30, 77, 140, 0.3) !important;
|
||||
}
|
||||
|
||||
/* Mobile Responsiveness */
|
||||
/* Mobile Responsiveness & Dashboard Optimization */
|
||||
@media (max-width: 768px) {
|
||||
.card {
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 0.85rem;
|
||||
}
|
||||
|
||||
/* NO forzar flex-direction: column en .btn-group general para preservar segmented controls */
|
||||
.btn-group {
|
||||
flex-direction: column;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.btn-group .btn {
|
||||
margin-bottom: 0.5rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Switchers y grupos de botones en cabeceras de tarjeta en móviles:
|
||||
Permite deslizamiento táctil horizontal fluido sin desbordar ni amontonar */
|
||||
.card-header .btn-group,
|
||||
.btn-group-mobile-scroll {
|
||||
display: inline-flex !important;
|
||||
flex-direction: row !important;
|
||||
flex-wrap: nowrap !important;
|
||||
overflow-x: auto !important;
|
||||
-webkit-overflow-scrolling: touch !important;
|
||||
max-width: 100% !important;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
border-radius: 8px !important;
|
||||
}
|
||||
.card-header .btn-group::-webkit-scrollbar,
|
||||
.btn-group-mobile-scroll::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.card-header .btn-group .btn,
|
||||
.btn-group-mobile-scroll .btn {
|
||||
white-space: nowrap !important;
|
||||
flex-shrink: 0 !important;
|
||||
padding: 0.35rem 0.65rem !important;
|
||||
font-size: 0.76rem !important;
|
||||
}
|
||||
|
||||
/* Dashboard Role Hero Banner en móvil */
|
||||
.dashboard-role-banner {
|
||||
padding: 0.85rem 1rem !important;
|
||||
border-radius: 0.85rem !important;
|
||||
margin-bottom: 0.85rem !important;
|
||||
}
|
||||
.dashboard-role-banner h1 {
|
||||
font-size: 1.25rem !important;
|
||||
}
|
||||
.dashboard-role-banner p {
|
||||
font-size: 0.8rem !important;
|
||||
}
|
||||
|
||||
/* KPI Cards en Dashboard: compactas, legibles y proporcionadas */
|
||||
.dashboard-stat-card .card-body {
|
||||
padding: 0.85rem 1rem !important;
|
||||
}
|
||||
.dashboard-stat-card h2 {
|
||||
font-size: 1.6rem !important;
|
||||
}
|
||||
.dashboard-stat-card h3 {
|
||||
font-size: 1.3rem !important;
|
||||
}
|
||||
.dashboard-stat-card .fs-3,
|
||||
.dashboard-stat-card .fs-4 {
|
||||
font-size: 1.35rem !important;
|
||||
}
|
||||
|
||||
/* Pestañas de estado (Comisiones y Aulas) en móviles */
|
||||
#commStatusPills,
|
||||
#classStatusPills {
|
||||
width: 100% !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
gap: 6px !important;
|
||||
}
|
||||
#commStatusPills .nav-link,
|
||||
#classStatusPills .nav-link {
|
||||
width: 100% !important;
|
||||
text-align: left !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: space-between !important;
|
||||
font-size: 0.8rem !important;
|
||||
padding: 0.45rem 0.75rem !important;
|
||||
}
|
||||
|
||||
/* Filtros de selección (ej. Carrera) en móvil */
|
||||
#commCareerFilter,
|
||||
#classFloorFilter {
|
||||
min-width: 0 !important;
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
/* Leyendas de Gráficos Pie en móvil */
|
||||
.chart-legend-mobile,
|
||||
.card-body .d-flex.justify-content-around.text-center.small.pt-2.border-top {
|
||||
flex-direction: column !important;
|
||||
align-items: center !important;
|
||||
gap: 4px !important;
|
||||
padding-top: 0.5rem !important;
|
||||
}
|
||||
|
||||
/* Tablas de la cartelera y comisiones */
|
||||
.table-responsive {
|
||||
border-radius: 0 0 0.5rem 0.5rem;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.table td, .table th {
|
||||
padding: 0.55rem 0.75rem !important;
|
||||
font-size: 0.8rem !important;
|
||||
}
|
||||
.table thead th {
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
/* Separadores verticales que se colapsan a horizontales */
|
||||
.col-md-5.border-start {
|
||||
border-left: none !important;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
|
||||
padding-top: 1rem !important;
|
||||
margin-top: 0.5rem !important;
|
||||
}
|
||||
[data-bs-theme="dark"] .col-md-5.border-start {
|
||||
border-top-color: rgba(255, 255, 255, 0.08) !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user