Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions frontend/src/components/Sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}

/* Navigation links section container */
.nav-links {
.sidebar .nav-links {
list-style: none;
width: 100%;
margin: 0;
Expand All @@ -90,7 +90,7 @@
}

/* Settings section container */
.nav-settings {
.sidebar .nav-settings {
list-style: none;
width: 100%;
margin: 0;
Expand All @@ -110,16 +110,18 @@
}

/* Individual navigation buttons styling */
.nav-item {
.sidebar .nav-item {
margin: 0;
width: auto;
width: 100%;
background: none;
border: none;
padding: 0;
display: flex;
justify-content: center;
}

/* Nav option list styling - Dark theme (default) */
.nav-link {
.sidebar .nav-link {
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -145,24 +147,26 @@
}

/* Expanded state styling */
.nav-link.expanded {
.sidebar .nav-link.expanded {
border-radius: 25px;
width: auto;
min-width: 160px;
padding: 0 20px;
width: 190px;
min-width: 190px;
max-width: 190px;
min-height: 54px;
Comment on lines +150 to +155

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid fixed width that breaks mobile override

The expanded nav buttons are now hard-set to width/min/max: 190px, but the responsive rule at the end of this file only adjusts min-width/padding for .nav-link.expanded at max-width: 768px. Because width remains 190px, the mobile override can’t actually shrink the button, so on narrow viewports the expanded buttons will still be 190px wide and can overflow a narrower sidebar. Consider letting width be auto (as before) or explicitly overriding width/max-width in the media query.

Useful? React with 👍 / 👎.

padding: 0 18px;
justify-content: flex-start;
gap: 15px;
}

/* Styling for currently selected nav item or setting */
.nav-link.active {
.sidebar .nav-link.active {
background-color: #3b82f6;
color: #ffffff;
box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* Hover effects on navigation items - Dark theme */
.nav-link:hover {
.sidebar .nav-link:hover {
background-color: #475569;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
Expand All @@ -175,13 +179,13 @@
}

/* Hover effect when the navigation item is also the currently selected item */
.nav-link.active:hover {
.sidebar .nav-link.active:hover {
background-color: #2563eb;
color: white;
}

/* Icon styling */
.nav-icon {
.sidebar .nav-icon {
font-size: 20px;
width: 20px;
height: 20px;
Expand All @@ -191,7 +195,7 @@
}

/* Text label styling */
.nav-text {
.sidebar .nav-text {
white-space: nowrap;
font-size: 14px;
font-weight: 500;
Expand Down
Loading