Skip to content

Commit 5d7d8c3

Browse files
refactor: Update resources to look as a stack (coder#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

Lines changed: 11 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy