Skip to content

Commit

Permalink
set maxHeight in user editor dialog (#43227)
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinghermit authored Jun 19, 2024
1 parent 61f3da0 commit 61af632
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/packages/teleport/src/Users/UserAddEdit/UserAddEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export function UserAddEdit(props: ReturnType<typeof useDialog>) {
dialogCss={() => ({
maxWidth: '700px',
width: '100%',
height: '70%',
height: '100%',
maxHeight: '600px',
})}
disableEscapeKeyDown={false}
onClose={onClose}
Expand All @@ -84,7 +85,7 @@ export function UserAddEdit(props: ReturnType<typeof useDialog>) {
<DialogHeader>
<DialogTitle>{isNew ? 'Create User' : 'Edit User'}</DialogTitle>
</DialogHeader>
<DialogContent maxHeight={620} overflow={'auto'}>
<DialogContent overflow={'auto'}>
{attempt.status === 'failed' && (
<Alert kind="danger" children={attempt.statusText} />
)}
Expand Down

0 comments on commit 61af632

Please sign in to comment.