Skip to content

Commit 98ec516

Browse files
committed
Fix styles
1 parent 25c5056 commit 98ec516

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

site/src/components/BorderedMenu/BorderedMenuRow.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const BorderedMenuRow: React.FC<BorderedMenuRowProps> = ({
6262

6363
if (path) {
6464
return (
65-
<NavLink to={path}>
65+
<NavLink to={path} className={styles.link}>
6666
<Component />
6767
</NavLink>
6868
)
@@ -122,6 +122,10 @@ const useStyles = makeStyles((theme) => ({
122122
fill: theme.palette.text.secondary,
123123
},
124124
},
125+
link: {
126+
textDecoration: "none",
127+
color: "inherit",
128+
},
125129
title: {
126130
fontSize: 16,
127131
fontWeight: 500,

site/src/components/BorderedMenu/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ export const BorderedMenu: React.FC<BorderedMenuProps> = ({ children, variant, .
2020

2121
const useStyles = makeStyles((theme) => ({
2222
root: {
23-
paddingBottom: theme.spacing(1),
23+
"&[data-variant='admin-dropdown'] $paperRoot": {
24+
padding: `${theme.spacing(3)}px 0`,
25+
},
26+
27+
"&[data-variant='user-dropdown'] $paperRoot": {
28+
paddingBottom: theme.spacing(1),
29+
width: 292,
30+
},
2431
},
2532
paperRoot: {
2633
width: "292px",

0 commit comments

Comments
 (0)