Skip to content

Commit

Permalink
Fix: Adjust chevron alignment to the right edge (twentyhq#7438)
Browse files Browse the repository at this point in the history
This pull request addresses the alignment issue of the chevron icon,
ensuring that it is positioned correctly on the right edge.
Fixes [twentyhq#7403](twentyhq#7403)

![after
fix](https://github.com/user-attachments/assets/84e6cd14-1d10-4331-8f25-da5423b15dd3)

---------

Co-authored-by: Charles Bochet <[email protected]>
Co-authored-by: ehconitin <[email protected]>
  • Loading branch information
3 people authored and harshit078 committed Oct 14, 2024
1 parent a8fab83 commit 6d657fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TableCell } from '@/ui/layout/table/components/TableCell';
import { TableRow } from '@/ui/layout/table/components/TableRow';

export const StyledApisFieldTableRow = styled(TableRow)`
grid-template-columns: 312px 132px 68px;
grid-template-columns: 312px auto 28px;
`;

const StyledNameTableCell = styled(TableCell)`
Expand All @@ -18,6 +18,7 @@ const StyledNameTableCell = styled(TableCell)`
const StyledIconTableCell = styled(TableCell)`
justify-content: center;
padding-right: ${({ theme }) => theme.spacing(1)};
padding-left: 0;
`;

const StyledIconChevronRight = styled(IconChevronRight)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const StyledTableBody = styled(TableBody)`
`;

const StyledTableRow = styled(TableRow)`
grid-template-columns: 312px 132px 68px;
grid-template-columns: 312px auto 28px;
`;

export const SettingsApiKeysTable = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { IconChevronRight } from 'twenty-ui';
Expand All @@ -8,12 +7,13 @@ import { TableCell } from '@/ui/layout/table/components/TableCell';
import { TableRow } from '@/ui/layout/table/components/TableRow';

export const StyledApisFieldTableRow = styled(TableRow)`
grid-template-columns: 444px 68px;
grid-template-columns: 1fr 28px;
`;

const StyledIconTableCell = styled(TableCell)`
justify-content: center;
padding-right: ${({ theme }) => theme.spacing(1)};
padding-left: 0;
`;

const StyledUrlTableCell = styled(TableCell)`
Expand Down

0 comments on commit 6d657fe

Please sign in to comment.