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

fix: Fallback message for virtual table was exceeding table header width #1020

Merged
merged 2 commits into from
May 10, 2024

Conversation

bdow
Copy link
Contributor

@bdow bdow commented May 10, 2024

For virtualized tables we subtract 20px from the total width to account for a vertical scrollbar, which helps prevent horizontal scrollbars. The fallback message was not respecting that adjusted width.

Before After
Screenshot 2024-05-10 at 4 16 32 PM Screenshot 2024-05-10 at 4 16 47 PM

@bdow bdow force-pushed the column-size-fallback-fix branch from 495cf6d to a7650fe Compare May 10, 2024 20:22
@@ -486,7 +486,7 @@ export function GridTable<R extends Kinded, X extends Only<GridTableXss, X> = an
<PresentationProvider fieldProps={fieldProps} wrap={style?.presentationSettings?.wrap}>
{/* If virtualized take some pixels off the width to accommodate when virtuoso's scrollbar is introduced. */}
{/* Otherwise a horizontal scrollbar will _always_ appear once the vertical scrollbar is needed */}
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, maybe move this comment into the helper method, to explain the - 20px? Could go either way...

@bdow bdow merged commit 60b6f57 into main May 10, 2024
6 checks passed
@bdow bdow deleted the column-size-fallback-fix branch May 10, 2024 20:30
homebound-team-bot pushed a commit that referenced this pull request May 10, 2024
## [2.343.5](v2.343.4...v2.343.5) (2024-05-10)

### Bug Fixes

* Fallback message for virtual table was exceeding table header width ([#1020](#1020)) ([60b6f57](60b6f57))
@homebound-team-bot
Copy link

🎉 This PR is included in version 2.343.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants