Skip to content

Commit

Permalink
fix(app): fix sidebar scroll (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Sep 24, 2023
1 parent fbc63b4 commit cb94c0f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function Header() {
<span className="i-ri-menu-line w-5 h-5"></span>
</button>
</div>
<div className="p-1.5">
<div className="p-1.5 overflow-y-auto">
<NavMenu onClick={() => setMenuOpen(false)} />
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion packages/app/src/components/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export function Drawer(props: {
leaveTo="opacity-0"
/>
{/* content */}
<RemoveScroll className="fixed inset-0 overflow-hidden">
<RemoveScroll
className="fixed inset-0 overflow-hidden"
removeScrollBar={false}
>
<Transition
appear
show={props.open}
Expand Down
5 changes: 4 additions & 1 deletion packages/app/src/components/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ function Modal(props: {
leaveTo="opacity-0"
/>
{/* content */}
<RemoveScroll className="fixed inset-0 overflow-hidden flex justify-center items-center">
<RemoveScroll
className="fixed inset-0 overflow-hidden flex justify-center items-center"
removeScrollBar={false}
>
<Transition
appear
show={props.open}
Expand Down

0 comments on commit cb94c0f

Please sign in to comment.