diff --git a/generations/library_rag/templates/base.html b/generations/library_rag/templates/base.html index 436d691..65f1618 100644 --- a/generations/library_rag/templates/base.html +++ b/generations/library_rag/templates/base.html @@ -56,11 +56,15 @@ max-width: var(--max-content-width); margin: 0 auto; padding: 1.5rem 1.5rem; + padding-top: 90px; /* Espace pour le header fixe */ + padding-left: calc(1rem + 48px + 1rem); /* Aligner avec le header */ } @media (min-width: 992px) { .wrapper { padding: 2.5rem 3rem; + padding-top: 90px; /* Conserver l'espace pour le header fixe */ + padding-left: calc(1rem + 48px + 1rem); /* Aligner avec le header */ } } @@ -322,10 +326,15 @@ /* Header */ .site-header { - padding: 1.5rem 0; + position: fixed; + top: 0; + left: 0; + right: 0; + padding: 1.5rem 1.5rem; + padding-left: calc(1rem + 48px + 1rem); /* left menu (1rem) + width (48px) + marge (1rem) = 80px */ border-bottom: 1px solid rgba(0, 0, 0, 0.04); - margin-bottom: 1.5rem; - margin-left: 64px; /* Space for hamburger button */ + background-color: var(--color-bg-main); + z-index: 100; } .site-title { @@ -712,27 +721,26 @@ -
- - +
{% block content %}{% endblock %} diff --git a/generations/library_rag/templates/chat.html b/generations/library_rag/templates/chat.html index 7f5636c..6c69bf2 100644 --- a/generations/library_rag/templates/chat.html +++ b/generations/library_rag/templates/chat.html @@ -18,9 +18,15 @@ } } - /* Remove header margin for full-width layout */ + /* Keep header fixed but adjust for chat full-width layout */ .site-header { - margin-left: 0 !important; + padding-left: calc(1rem + 48px + 1rem) !important; /* Clear hamburger menu */ + } + + @media (min-width: 992px) { + .site-header { + padding-left: calc(1rem + 48px + 1rem) !important; + } } /* Chat-specific styles */ @@ -28,7 +34,7 @@ display: grid; grid-template-columns: 60% 40%; gap: 1.5rem; - height: calc(100vh - 300px); + height: calc(100vh - 90px - 1.5rem); min-height: 600px; width: 100%; } @@ -49,6 +55,7 @@ .chat-main { display: flex; flex-direction: column; + height: 100%; background-color: rgba(255, 255, 255, 0.06); border-radius: 12px; border: 1px solid rgba(125, 110, 88, 0.25); @@ -258,6 +265,7 @@ .context-sidebar { display: flex; flex-direction: column; + height: 100%; background-color: rgba(255, 255, 255, 0.06); border-radius: 12px; border: 1px solid rgba(125, 110, 88, 0.25);