Skip to content

Commit 5d7d8c3

Browse files
refactor: Update resources to look as a stack (#4631)
1 parent 906046c commit 5d7d8c3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

site/src/components/Resources/ResourceCard.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,17 @@ const useStyles = makeStyles((theme) => ({
210210
background: theme.palette.background.paper,
211211
borderRadius: theme.shape.borderRadius,
212212
border: `1px solid ${theme.palette.divider}`,
213+
214+
"&:not(:first-child)": {
215+
borderTop: 0,
216+
borderTopLeftRadius: 0,
217+
borderTopRightRadius: 0,
218+
},
219+
220+
"&:not(:last-child)": {
221+
borderBottomLeftRadius: 0,
222+
borderBottomRightRadius: 0,
223+
},
213224
},
214225

215226
resourceCardProfile: {

site/src/components/Resources/Resources.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
5454
}
5555

5656
return (
57-
<Stack direction="column" spacing={1}>
57+
<Stack direction="column" spacing={0}>
5858
{displayResources.map((resource) => {
5959
return (
6060
<ResourceCard

0 commit comments

Comments
 (0)