Skip to content

Commit ea280ea

Browse files
committed
Make table row padding standard
1 parent 974e592 commit ea280ea

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const TemplatesPageView: React.FC<TemplatesPageViewProps> = (props) => {
7777
</TableRow>
7878
)}
7979
{props.templates?.map((template) => (
80-
<TableRow key={template.id} className={styles.templateRow}>
80+
<TableRow key={template.id}>
8181
<TableCell>
8282
<Box alignItems="center" display="flex">
8383
<Avatar variant="square" className={styles.templateAvatar}>
@@ -127,12 +127,6 @@ const useStyles = makeStyles((theme) => ({
127127
lineHeight: `${theme.spacing(3)}px`,
128128
},
129129
},
130-
templateRow: {
131-
"& > td": {
132-
paddingTop: theme.spacing(2),
133-
paddingBottom: theme.spacing(2),
134-
},
135-
},
136130
templateAvatar: {
137131
borderRadius: 2,
138132
marginRight: theme.spacing(1),

site/src/pages/WorkspacesPage/WorkspacesPageView.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const WorkspacesPageView: React.FC<WorkspacesPageViewProps> = (props) =>
7171
{props.workspaces?.map((workspace) => {
7272
const status = getDisplayStatus(theme, workspace.latest_build)
7373
return (
74-
<TableRow key={workspace.id} className={styles.workspaceRow}>
74+
<TableRow key={workspace.id}>
7575
<TableCell>
7676
<div className={styles.workspaceName}>
7777
<Avatar variant="square" className={styles.workspaceAvatar}>
@@ -134,12 +134,6 @@ const useStyles = makeStyles((theme) => ({
134134
lineHeight: `${theme.spacing(3)}px`,
135135
},
136136
},
137-
workspaceRow: {
138-
"& > td": {
139-
paddingTop: theme.spacing(2),
140-
paddingBottom: theme.spacing(2),
141-
},
142-
},
143137
workspaceAvatar: {
144138
borderRadius: 2,
145139
marginRight: theme.spacing(1),

site/src/theme/overrides.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export const getOverrides = (palette: PaletteOptions) => {
4444
// Gives the appearance of a border!
4545
borderRadius: 2,
4646
border: `1px solid ${palette.divider}`,
47+
48+
"& td": {
49+
paddingTop: 16,
50+
paddingBottom: 16,
51+
},
4752
},
4853
},
4954
MuiTableCell: {

0 commit comments

Comments
 (0)