Skip to content

Fix members table column alignment #12298

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

Conversation

DivyanshuLohani
Copy link
Contributor

Fixes: #12287

image

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

Modified workspace members table layout in packages/twenty-front/src/pages/settings/SettingsWorkspaceMembers.tsx to improve column alignment and spacing.

  • Changed grid column proportions from 150px 1fr 1fr to 3fr 1fr 1fr for better email column width
  • Removed right alignment from 'Expires in' column for consistent chip alignment
  • Adjusted table header and cell alignments to match design requirements

💡 (2/5) Greptile learns from your feedback when you react with 👍/👎!

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

Copy link
Contributor

github-actions bot commented May 26, 2025

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:44040

This environment will automatically shut down when the PR is closed or after 5 hours.

Copy link
Contributor

@etiennejouan etiennejouan left a comment

Choose a reason for hiding this comment

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

Hi @DivyanshuLohani 👋 Thank you for your contribution :)

It looks good but does not work as expected with long email ⬇️
Screenshot 2025-05-28 at 16 06 26

@@ -308,21 +308,21 @@ export const SettingsWorkspaceMembers = () => {
{isNonEmptyArray(workspaceInvitations) && (
<StyledTable>
<TableRow
gridAutoColumns="150px 1fr 1fr"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you try increasing to 300px ?

<Trans>Expires in</Trans>
</TableHeader>
<TableHeader></TableHeader>
</TableRow>
<StyledTableRows>
{workspaceInvitations?.map((workspaceInvitation) => (
<TableRow
gridAutoColumns="150px 1fr 1fr"
Copy link
Contributor

Choose a reason for hiding this comment

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

same 300px here plz

mobileGridAutoColumns="100px 1fr 1fr"
>
<TableHeader>
<Trans>Email</Trans>
</TableHeader>
<TableHeader align={'right'}>
Copy link
Contributor

Choose a reason for hiding this comment

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

align={'center'}

@@ -337,7 +337,7 @@ export const SettingsWorkspaceMembers = () => {
{workspaceInvitation.email}
</StyledTextContainerWithEllipsis>
</TableCell>
<TableCell align={'right'}>
Copy link
Contributor

Choose a reason for hiding this comment

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

align={'center'}

@DivyanshuLohani
Copy link
Contributor Author

Sorry I am new to contributing I didn't test it well my bad

Copy link
Contributor

@etiennejouan etiennejouan left a comment

Choose a reason for hiding this comment

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

Sorry I am new to contributing I didn't test it well my bad

It's ok ! Please, feel free to take other issues. Thank you for your contribution :)

@etiennejouan etiennejouan enabled auto-merge (squash) May 28, 2025 17:21
@etiennejouan etiennejouan merged commit 76d0be7 into twentyhq:main May 28, 2025
49 checks passed
Copy link
Contributor

Thanks @DivyanshuLohani for your contribution!
This marks your 2nd PR on the repo. You're top 15% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

jordan-chalupka pushed a commit to InsurOS/twenty that referenced this pull request Jun 1, 2025
Fixes: twentyhq#12287 


![image](https://github.com/user-attachments/assets/4f8e8c9e-cf0a-4fa8-b129-087c29a8fd94)

---------

Co-authored-by: Divyanshu Lohani <DivyanshuLohani@users.noreply.github.com>
Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
jordan-chalupka pushed a commit to InsurOS/twenty that referenced this pull request Jun 1, 2025
Fixes: twentyhq#12287 


![image](https://github.com/user-attachments/assets/4f8e8c9e-cf0a-4fa8-b129-087c29a8fd94)

---------

Co-authored-by: Divyanshu Lohani <DivyanshuLohani@users.noreply.github.com>
Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 2, 2025
Fixes: twentyhq#12287 


![image](https://github.com/user-attachments/assets/4f8e8c9e-cf0a-4fa8-b129-087c29a8fd94)

---------

Co-authored-by: Divyanshu Lohani <DivyanshuLohani@users.noreply.github.com>
Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 2, 2025
Fixes: twentyhq#12287 


![image](https://github.com/user-attachments/assets/4f8e8c9e-cf0a-4fa8-b129-087c29a8fd94)

---------

Co-authored-by: Divyanshu Lohani <DivyanshuLohani@users.noreply.github.com>
Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Members table column alignement
3 participants