Skip to content

Commit dc1543c

Browse files
committed
Fix table alignment
1 parent 77fa647 commit dc1543c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

site/src/components/AuditLogRow/AuditLogRow.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Template: Story<AuditLogRowProps> = (args) => (
1818
<Table>
1919
<TableHead>
2020
<TableRow>
21-
<TableCell>Logs</TableCell>
21+
<TableCell style={{ paddingLeft: 32 }}>Logs</TableCell>
2222
</TableRow>
2323
</TableHead>
2424
<TableBody>

site/src/pages/AuditPage/AuditPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const AuditPageView: FC<AuditPageViewProps> = ({
6262
<Table>
6363
<TableHead>
6464
<TableRow>
65-
<TableCell>Logs</TableCell>
65+
<TableCell style={{ paddingLeft: 32 }}>Logs</TableCell>
6666
</TableRow>
6767
</TableHead>
6868
<TableBody>

site/src/theme/overrides.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
126126
padding: "12px 8px",
127127
// This targets the first+last td elements, and also the first+last elements
128128
// of a TableCellLink.
129-
"&:first-child, &:first-child > a": {
129+
"&:not(:only-child):first-child, &:not(:only-child):first-child > a": {
130130
paddingLeft: 32,
131131
},
132-
"&:last-child, &:last-child > a": {
132+
"&:not(:only-child):last-child, &:not(:only-child):last-child > a": {
133133
paddingRight: 32,
134134
},
135135
},

0 commit comments

Comments
 (0)