Skip to content

Commit

Permalink
fix: sticky not working on top bar
Browse files Browse the repository at this point in the history
overflow-x-auto was being used to create a blocking formatting context
to contain everything inside the div as much as possible
but as unintended side effects it broke our position sticky

we have a ticket to properly create a mobile layout, let's remove the
hack here and leave the ticket for that

Closes #726
  • Loading branch information
WilsonNet committed Jan 6, 2025
1 parent 797a0da commit e7ac316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Route = createRootRoute({
<div className="flex w-full flex-row justify-between">
<SideMenu />
<TopBar />
<div className="w-full overflow-x-auto bg-lightGray px-16 pt-24">
<div className="w-full bg-lightGray px-16 pt-24">
<Outlet />
</div>
</div>
Expand Down

0 comments on commit e7ac316

Please sign in to comment.