Skip to content

Commit 4372d6e

Browse files
committed
fix: Force sidebar expand button to be ALWAYS visible with prominent styling
1 parent 0118114 commit 4372d6e

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

frontend/static/style.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,4 +382,51 @@ header {
382382
color: black !important;
383383
-webkit-text-fill-color: black !important;
384384
}
385+
}
386+
387+
/* --- SIDEBAR TOGGLE BUTTON - ALWAYS VISIBLE --- */
388+
389+
/* The expand button when sidebar is collapsed - make it VERY visible */
390+
[data-testid="stSidebarCollapsedControl"] {
391+
display: block !important;
392+
visibility: visible !important;
393+
opacity: 1 !important;
394+
position: fixed !important;
395+
top: 14px !important;
396+
left: 14px !important;
397+
z-index: 999999 !important;
398+
}
399+
400+
[data-testid="stSidebarCollapsedControl"] button {
401+
display: flex !important;
402+
visibility: visible !important;
403+
opacity: 1 !important;
404+
background: linear-gradient(135deg, #3B82F6, #8B5CF6) !important;
405+
border: none !important;
406+
border-radius: 10px !important;
407+
padding: 12px 16px !important;
408+
color: white !important;
409+
font-size: 1.3rem !important;
410+
box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5) !important;
411+
cursor: pointer !important;
412+
transition: all 0.2s ease !important;
413+
}
414+
415+
[data-testid="stSidebarCollapsedControl"] button:hover {
416+
transform: scale(1.1) !important;
417+
box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6) !important;
418+
}
419+
420+
/* The collapse button inside sidebar - make it styled nicely */
421+
button[data-testid="stSidebarCollapseButton"] {
422+
background: rgba(59, 130, 246, 0.2) !important;
423+
border: 1px solid rgba(59, 130, 246, 0.3) !important;
424+
border-radius: 8px !important;
425+
color: #60A5FA !important;
426+
transition: all 0.2s ease !important;
427+
}
428+
429+
button[data-testid="stSidebarCollapseButton"]:hover {
430+
background: rgba(59, 130, 246, 0.3) !important;
431+
transform: scale(1.05);
385432
}

0 commit comments

Comments
 (0)