Skip to content

Commit

Permalink
Side bar fixed without transition property
Browse files Browse the repository at this point in the history
Signed-off-by: Supratick Mondal <[email protected]>
  • Loading branch information
sonustar committed Sep 7, 2024
1 parent 12ce730 commit 1ac9e47
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/frontend/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,8 @@ const Sidebar = (props: Props) => {
<aside
className={`${
sidebarOpen
? 'relative translate-x-0'
: 'fixed -translate-x-full'
? 'relative' : 'fixed left-[-16rem]'
} top-0 h-full bg-primary text-white py-1 px-2 w-64 transition-transform duration-500 ease-in z-40`}
style={{
transitionDelay: '0s',
transitionDuration: '100ms',
transitionProperty: 'transform',
transitionTimingFunction:
'ease-in-out'
}}
>
<MenuOptions
isOpen={sidebarOpen}
Expand Down

0 comments on commit 1ac9e47

Please sign in to comment.