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

fixed button size #3194

Merged
merged 2 commits into from
Jan 3, 2024
Merged

fixed button size #3194

merged 2 commits into from
Jan 3, 2024

Conversation

suman-somu
Copy link
Contributor

Fix #2971

The width of the Title was set to 100% which I updated to adjust automatically with enabled and disabled back button. And set the size of buttons to 24px.

image

Copy link

github-actions bot commented Jan 2, 2024

CLA

Hello there and welcome to our project!
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.
Although we don't have a dedicated legal counsel, having this kind of agreement can protect us from potential legal issues or patent trolls.
Thank you for your understanding.

Generated by 🚫 dangerJS against 2194b32

width: 24px;
`;
const StyledBackIconButton = styled(IconButton)`
height: 24px;
Copy link
Member

Choose a reason for hiding this comment

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

this actually looks unnecessary if you pass the right size to the IconButton (small)

@@ -54,14 +54,23 @@ const StyledTitleContainer = styled.div`
max-width: 50%;
`;

const StyledBackIconButton = styled(IconButton)`
const StyledButtonDiv = styled.div`
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit confused why we would need a container here.
I'm taking a look!

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.

Thanks for the contribution! While taking a look at your PR, I have actually found ways to simplify a bit more, please take a look at the last commit.

Really appreciate the help, feel free to take any other good first issue!

@charlesBochet charlesBochet merged commit df6ceb7 into twentyhq:main Jan 3, 2024
10 checks passed
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.

Back ton index button is no more square
2 participants