Skip to content

Commit d1d2d48

Browse files
committed
Improve roles menu
1 parent 0cfc7ee commit d1d2d48

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

site/src/components/EditRolesButton/EditRolesButton.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Option: React.FC<{
3737
onChange(e.currentTarget.value)
3838
}}
3939
/>
40-
<Stack spacing={0.5}>
40+
<Stack spacing={0}>
4141
<strong>{name}</strong>
4242
<span className={styles.optionDescription}>{description}</span>
4343
</Stack>
@@ -142,7 +142,7 @@ export const EditRolesButton: FC<EditRolesButtonProps> = ({
142142
<div className={styles.footer}>
143143
<Stack direction="row" alignItems="flex-start">
144144
<UserIcon className={styles.userIcon} />
145-
<Stack spacing={0.5}>
145+
<Stack spacing={0}>
146146
<strong>{t("member")}</strong>
147147
<span className={styles.optionDescription}>
148148
{t("roleDescription.member")}
@@ -182,14 +182,15 @@ const useStyles = makeStyles((theme) => ({
182182
padding: 0,
183183

184184
"&:disabled": {
185-
opacity: 0.5,
185+
opacity: 0,
186186
},
187187
},
188188
options: {
189189
padding: theme.spacing(3),
190190
},
191191
option: {
192192
cursor: "pointer",
193+
fontSize: 14,
193194
},
194195
checkbox: {
195196
padding: 0,
@@ -202,13 +203,15 @@ const useStyles = makeStyles((theme) => ({
202203
},
203204
},
204205
optionDescription: {
205-
fontSize: 12,
206+
fontSize: 13,
206207
color: theme.palette.text.secondary,
208+
lineHeight: "160%",
207209
},
208210
footer: {
209211
padding: theme.spacing(3),
210212
backgroundColor: theme.palette.background.paper,
211213
borderTop: `1px solid ${theme.palette.divider}`,
214+
fontSize: 14,
212215
},
213216
userIcon: {
214217
width: theme.spacing(2.5), // Same as the checkbox

0 commit comments

Comments
 (0)