Skip to content

Commit

Permalink
fixed sidebar closed behavior somewhat
Browse files Browse the repository at this point in the history
  • Loading branch information
mokelgit committed Sep 20, 2024
1 parent 1d2f408 commit fa5f0e2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions components/layout/SidebarMenuGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ export default function SidebarMenuGroup({
}`}
>
<div
className={`flex items-center justify-items-center rounded-full md:rounded-r-none relative `}
className={`flex items-center justify-items-center rounded-full md:rounded-r-none relative ${
sidebarOpen ? "block" : "hidden"
}`}
>
<div className={`h-full`}></div>
<div
Expand Down Expand Up @@ -576,10 +578,12 @@ export default function SidebarMenuGroup({
<div
className={`px-0 md:pl-5 mt-[7px] mb-[2px] overflow-visible text-[#5A6462] ${
i === 0 ? "mt-[12px]" : "mt-[7px]"
}`}
} `}
>
<div
className={`flex items-center justify-items-center rounded-full md:rounded-r-none relative `}
className={`flex items-center justify-items-center rounded-full md:rounded-r-none relative ${
sidebarOpen ? "block" : "hidden"
}`}
>
<div className={`h-full`}></div>
<div
Expand Down Expand Up @@ -643,7 +647,7 @@ export default function SidebarMenuGroup({

<div className="w-full flex items-center gap-x-[15px]">
<div
className={`w-[26px] h-[26px] flex items-center justify-center rounded-full bg-[#151A19] ml-2.5`}
className={`w-[26px] h-[26px] min-w-[26px] min-h-[26px] flex items-center justify-center rounded-full bg-[#151A19] ml-2.5`}
>
<Icon
icon={option.icon}
Expand All @@ -654,7 +658,7 @@ export default function SidebarMenuGroup({
<div
className={`text-[14px] py-1 w-48 font-bold break-inside-auto transition-all duration-300 ease-in text-left `}
>
{option.label}
{sidebarOpen ? option.label : <span>&nbsp;</span>}
</div>
) : (
<div
Expand Down

0 comments on commit fa5f0e2

Please sign in to comment.