Skip to content
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

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

jessepinho
Copy link
Contributor

@jessepinho jessepinho commented Apr 8, 2024

See inline code comments.

Before

Note the horizontal scrollbar at the bottom.

image

After

image

Closes #899

@@ -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'>
Copy link
Contributor Author

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'>
Copy link
Contributor Author

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!

@jessepinho jessepinho marked this pull request as ready for review April 8, 2024 20:29
Copy link
Contributor

@Valentine1898 Valentine1898 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jessepinho jessepinho merged commit 716e14d into main Apr 8, 2024
6 checks passed
@jessepinho jessepinho deleted the jessepinho/horizontal-scrollbar-web-899 branch April 8, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove horizontal scrollbar at bottom of dashboard page
2 participants