Skip to content

Fix buttons size #10620

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

Merged
merged 1 commit into from
Mar 3, 2025
Merged

Fix buttons size #10620

merged 1 commit into from
Mar 3, 2025

Conversation

bosiraphael
Copy link
Contributor

The button size attribute was removed accidentally in this PR #10536, I'm putting it back.
All the buttons were 32px instead of 24px for the small ones.

@lucasbordeau lucasbordeau enabled auto-merge (squash) March 3, 2025 13:55
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 PR restores the button size attribute that was accidentally removed in PR #10536, ensuring small buttons render at 24px height instead of all buttons defaulting to 32px.

  • Fixed packages/twenty-ui/src/input/button/components/Button/Button.tsx by adding back the size prop to the StyledButton component on line 469
  • The height logic on line 342 now properly applies (size === 'small' ? '24px' : '32px') based on the size prop
  • Reordered imports at the top of the file for better organization
  • This fix maintains consistency with other button components in the codebase that support size variations

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

@lucasbordeau lucasbordeau merged commit 4401891 into main Mar 3, 2025
47 checks passed
@lucasbordeau lucasbordeau deleted the r--fix-buttons-size branch March 3, 2025 14:02
AMoreaux pushed a commit that referenced this pull request Mar 3, 2025
The button size attribute was removed accidentally in this PR
#10536, I'm putting it back.
All the buttons were 32px instead of 24px for the small ones.
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.

2 participants