diff --git a/src/inputs/RoleEditor/RoleEditor.js b/src/inputs/RoleEditor/RoleEditor.js index 262b619c..d8b42645 100644 --- a/src/inputs/RoleEditor/RoleEditor.js +++ b/src/inputs/RoleEditor/RoleEditor.js @@ -2,7 +2,7 @@ // Licensed under the MIT license. import React from 'react'; import PropTypes from 'prop-types'; -import { Grid2 as Grid, Typography, Avatar } from '@mui/material'; +import { Grid2 as Grid, Typography, Avatar, Tooltip } from '@mui/material'; import makeStyles from '@mui/styles/makeStyles'; import { DefaultAvatar } from '../../misc'; import { getIdentifierFromUserEmail } from '../../utils'; @@ -15,6 +15,11 @@ const useStyles = makeStyles((theme) => ({ gap: '15px', marginLeft: 0, }, + agentName: { + overflow: 'hidden', + textOverflow: 'ellipsis', + textWrap: 'nowrap', + }, rolesEditor: { display: 'flex', alignItems: 'center', @@ -23,6 +28,7 @@ const useStyles = makeStyles((theme) => ({ nameGroup: { display: 'flex', flexDirection: 'column', + maxWidth: '80%', }, })); export const RoleEditor = ({ @@ -42,9 +48,11 @@ export const RoleEditor = ({ {avatar}
- - {agentName} - + + + {agentName} + + {helperText != null && ( {helperText[agentAccess]}