Skip to content

Commit 6ea7d9f

Browse files
committed
fix: Optimize layout to prevent header overlapping and improve responsiveness
1 parent 69c4be1 commit 6ea7d9f

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

frontend/static/style.css

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,31 @@ footer {
196196
visibility: hidden;
197197
}
198198

199-
/* header {
200-
visibility: hidden;
201-
} */
199+
/* Header: Visible but blended */
200+
header[data-testid="stHeader"] {
201+
background-color: #0F172A !important;
202+
/* Match theme background */
203+
border-bottom: 1px solid rgba(59, 130, 246, 0.1);
204+
/* Subtle border */
205+
z-index: 90 !important;
206+
}
202207

203-
/* Force Sidebar Toggle to be visible even if header is hidden */
208+
/* Hide the decoration line at top of header */
209+
header[data-testid="stHeader"]>div:first-child {
210+
background: transparent !important;
211+
}
212+
213+
/* Ensure content doesn't go under header */
214+
.block-container {
215+
padding-top: 4rem !important;
216+
/* Increased from 1.5rem to clear header */
217+
padding-bottom: 3rem !important;
218+
}
219+
220+
/* Force Sidebar Toggle to be visible */
204221
[data-testid="stSidebarCollapsedControl"] {
205-
visibility: visible !important;
206222
display: block !important;
207223
color: #60A5FA !important;
208-
z-index: 1000000 !important;
209224
}
210225

211226
/* ============================================

0 commit comments

Comments
 (0)