-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix members table column alignment #12298
Conversation
There was a problem hiding this 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
to3fr 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
🚀 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. |
There was a problem hiding this 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 ⬇️
@@ -308,21 +308,21 @@ export const SettingsWorkspaceMembers = () => { | |||
{isNonEmptyArray(workspaceInvitations) && ( | |||
<StyledTable> | |||
<TableRow | |||
gridAutoColumns="150px 1fr 1fr" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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'}> |
There was a problem hiding this comment.
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'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
align={'center'}
Sorry I am new to contributing I didn't test it well my bad |
There was a problem hiding this 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 :)
Thanks @DivyanshuLohani for your contribution! |
Fixes: twentyhq#12287  --------- Co-authored-by: Divyanshu Lohani <DivyanshuLohani@users.noreply.github.com> Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
Fixes: twentyhq#12287  --------- Co-authored-by: Divyanshu Lohani <DivyanshuLohani@users.noreply.github.com> Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
Fixes: twentyhq#12287  --------- Co-authored-by: Divyanshu Lohani <DivyanshuLohani@users.noreply.github.com> Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
Fixes: twentyhq#12287  --------- Co-authored-by: Divyanshu Lohani <DivyanshuLohani@users.noreply.github.com> Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
Fixes: #12287