Skip to content

Commit 31b89e4

Browse files
committed
fix: align action list item to a grid
1 parent 800a49e commit 31b89e4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

site/src/pages/ManagementSettingsPage/CustomRolesPage/CreateEditRolePageView.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ const PermissionCheckboxGroup: FC<PermissionCheckboxGroupProps> = ({
346346
{resourceKey}
347347
<ul css={styles.checkBoxes}>
348348
{Object.entries(value).map(([actionKey, value]) => (
349-
<li key={actionKey}>
349+
<li key={actionKey} css={styles.actionItem}>
350350
<span css={styles.actionText}>
351351
<Checkbox
352352
size="small"
@@ -357,8 +357,8 @@ const PermissionCheckboxGroup: FC<PermissionCheckboxGroupProps> = ({
357357
onChange={(e) => handleActionCheckChange(e, form)}
358358
/>
359359
{actionKey}
360-
</span>{" "}
361-
&ndash; <span css={styles.actionDescription}>{value}</span>
360+
</span>
361+
<span css={styles.actionDescription}>{value}</span>
362362
</li>
363363
))}
364364
</ul>
@@ -412,7 +412,12 @@ const styles = {
412412
}),
413413
actionDescription: (theme) => ({
414414
color: theme.palette.text.secondary,
415+
paddingTop: 6,
415416
}),
417+
actionItem: {
418+
display: "grid",
419+
gridTemplateColumns: "270px 3fr",
420+
},
416421
} satisfies Record<string, Interpolation<Theme>>;
417422

418423
export default CreateEditRolePageView;

0 commit comments

Comments
 (0)