-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of horizontal scrollbar on dashboard page #906
Conversation
@@ -43,7 +43,7 @@ export default function AssetsTable() { | |||
<TableHeader key={account.account} className='group'> | |||
<TableRow> | |||
<TableHead colSpan={2}> | |||
<div className='flex max-w-full flex-col justify-center gap-2 md:flex-row pt-8 group-[:first-of-type]:pt-0'> | |||
<div className='flex max-w-full flex-col justify-center gap-2 pt-8 group-[:first-of-type]:pt-0 md:flex-row'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just one of those tailwind class-order linting things. Figured I'd fix it while I was investigating this.
@@ -35,7 +35,7 @@ export const Layout = () => { | |||
return ( | |||
<> | |||
<HeadTag /> | |||
<div className='flex min-h-screen w-screen flex-col'> | |||
<div className='flex min-h-screen w-full flex-col'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the actual fix. w-screen
was setting the div's width to 100vw
, which causes overflow when there's a vertical scrollbar. w-full
sets it to 100%
, which accounts for the vertical scrollbar.
The reason we only saw this problem on the dashboard, is that the dashboard was the only page with a vertical scrollbar!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
See inline code comments.
Before
Note the horizontal scrollbar at the bottom.
After
Closes #899