Skip to content

Commit 62f686c

Browse files
fix: Templates table columns width (#3731)
1 parent 6285d65 commit 62f686c

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

site/src/components/TableCellData/TableCellData.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ const useStyles = makeStyles((theme) => ({
3737
secondary: {
3838
fontSize: 12,
3939
color: theme.palette.text.secondary,
40+
lineHeight: "140%",
41+
marginTop: 2,
42+
maxWidth: 540,
4043
},
4144
}))

site/src/pages/TemplatesPage/TemplatesPageView.stories.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ AllStates.args = {
2525
description: "😮 Wow, this one has a bunch of usage!",
2626
icon: "",
2727
},
28+
{
29+
...MockTemplate,
30+
description:
31+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ",
32+
},
2833
],
2934
}
3035

site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ export const TemplatesPageView: FC<React.PropsWithChildren<TemplatesPageViewProp
115115
<Table>
116116
<TableHead>
117117
<TableRow>
118-
<TableCell>{Language.nameLabel}</TableCell>
119-
<TableCell>{Language.usedByLabel}</TableCell>
120-
<TableCell>{Language.lastUpdatedLabel}</TableCell>
121-
<TableCell>{Language.createdByLabel}</TableCell>
118+
<TableCell width="50%">{Language.nameLabel}</TableCell>
119+
<TableCell width="16%">{Language.usedByLabel}</TableCell>
120+
<TableCell width="16%">{Language.lastUpdatedLabel}</TableCell>
121+
<TableCell width="16%">{Language.createdByLabel}</TableCell>
122122
<TableCell width="1%"></TableCell>
123123
</TableRow>
124124
</TableHead>

0 commit comments

Comments
 (0)