fix: Implementación de Sticky Header y optimización de área segura (Notch)
This commit is contained in:
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user