Skip to content

Commit

Permalink
mobile view fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YourUsernam3 committed Feb 7, 2024
1 parent 251856c commit 52fe91a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/app/components/Sidebar_Guest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Sidebar = () => {
// returns the current route that user is on, null if user is on the root (admin page.tsx)
const segement = useSelectedLayoutSegment();

// useState for determining if slider is collapased
// useState 1ining if slider is collapased
const [isCollapsed, setCollapsed] = useState(false);

const toggleSlider = () => {
Expand Down
11 changes: 1 addition & 10 deletions src/app/styles/admin/sidebar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}

.currentOption {
background-color: #f0f0f0;
background-color: #3498db;
}

.toggleButton {
Expand Down Expand Up @@ -95,16 +95,7 @@

/* mobile view */
@media (max-width: 768px) {
.sidebar {
width: 45vw;
text-align: center;
}

.collapsedSidebar {
width: 40px;
padding-left: 10px;
overflow: hidden;
height: 60px;
box-shadow: 0px 0 0px rgba(0, 0, 0, 0.1);
}
}

0 comments on commit 52fe91a

Please sign in to comment.