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: width in PageHeader comp #7866

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

harshrajeevsingh
Copy link
Contributor

Fixes: #7864

This fix prevents layout issues caused by invalid CSS and ensures that the PageHeader component works correctly when no width prop is passed.

Screenshot from 2024-10-20 00-03-39

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request addresses an issue with the PageHeader component's width property, fixing a potential layout problem.

  • Modified packages/twenty-front/src/modules/ui/layout/page/PageHeader.tsx to set a default width of '100%'
  • Prevents generation of invalid CSS value 'undefinedpx' when width prop is not provided
  • Resolves issue undefinedpx in PageHeader component's width property #7864, ensuring consistent layout behavior for the PageHeader component
  • Simple fix that maintains component functionality while improving robustness

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Thank you! Good catch :)

@charlesBochet charlesBochet enabled auto-merge (squash) October 21, 2024 16:40
@charlesBochet charlesBochet merged commit 11c3f1c into twentyhq:main Oct 21, 2024
13 checks passed
@charlesBochet
Copy link
Member

/award 150

Copy link

oss-gg bot commented Oct 21, 2024

Awarding harshrajeevsingh: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/harshrajeevsingh

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.

undefinedpx in PageHeader component's width property
3 participants