fix: Implementación de Sticky Header y optimización de área segura (Notch)

This commit is contained in:
2026-02-22 14:07:47 -05:00
parent 441cf298e3
commit d8245c5021
2 changed files with 7 additions and 10 deletions

View File

@ -164,16 +164,15 @@ const handleLogout = () => {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 0 20px;
height: 64px;
padding: var(--safe-area-top) 20px 0; /* Añadir espacio para el Notch */
height: calc(64px + var(--safe-area-top));
border-bottom: 1px solid var(--border-color);
position: fixed;
position: sticky; /* Cambiado de fixed a sticky para mejor integración */
top: 0;
left: 0;
right: 0;
z-index: 2000;
width: 100%;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-left {

View File

@ -20,20 +20,18 @@ const authStore = useAuthStore();
.main-layout {
display: flex;
flex-direction: column;
height: 100vh;
min-height: 100vh;
width: 100%;
overflow: hidden;
background: transparent; /* Permitir ver fondos de páginas */
background: var(--bg-primary);
}
.main-content {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
width: 100%;
background: transparent;
display: flex;
flex-direction: column;
padding-top: 64px; /* Compensar AppHeader fijo */
/* El padding-top ya no es necesario porque el header es sticky */
}
.has-bottom-nav {