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

View File

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