Skip to content

Commit a933d02

Browse files
csm-thuarianber7
authored andcommitted
chore: bump package version to 10.1.1 for release
1 parent 403ec04 commit a933d02

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cosmotech/ui",
3-
"version": "10.1.0",
3+
"version": "10.1.1",
44
"description": "",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",

src/inputs/RoleEditor/RoleEditor.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33
import React from 'react';
44
import PropTypes from 'prop-types';
5-
import { Grid2 as Grid, Typography, Avatar } from '@mui/material';
5+
import { Grid2 as Grid, Typography, Avatar, Tooltip } from '@mui/material';
66
import makeStyles from '@mui/styles/makeStyles';
77
import { DefaultAvatar } from '../../misc';
88
import { getIdentifierFromUserEmail } from '../../utils';
@@ -15,6 +15,11 @@ const useStyles = makeStyles((theme) => ({
1515
gap: '15px',
1616
marginLeft: 0,
1717
},
18+
agentName: {
19+
overflow: 'hidden',
20+
textOverflow: 'ellipsis',
21+
textWrap: 'nowrap',
22+
},
1823
rolesEditor: {
1924
display: 'flex',
2025
alignItems: 'center',
@@ -23,6 +28,7 @@ const useStyles = makeStyles((theme) => ({
2328
nameGroup: {
2429
display: 'flex',
2530
flexDirection: 'column',
31+
maxWidth: '80%',
2632
},
2733
}));
2834
export const RoleEditor = ({
@@ -42,9 +48,11 @@ export const RoleEditor = ({
4248
<Grid className={classes.agentGroup} size={7}>
4349
{avatar}
4450
<div className={classes.nameGroup}>
45-
<Typography data-cy="role-editor-agent-name" variant="body1">
46-
{agentName}
47-
</Typography>
51+
<Tooltip title={agentName} arrow>
52+
<Typography className={classes.agentName} data-cy="role-editor-agent-name" variant="body1">
53+
{agentName}
54+
</Typography>
55+
</Tooltip>
4856
{helperText != null && (
4957
<Typography data-cy="role-editor-helper-text" variant="body2" color="textSecondary">
5058
{helperText[agentAccess]}
@@ -102,4 +110,4 @@ RoleEditor.propTypes = {
102110
* List of detailed description of each role to display when changing access
103111
*/
104112
helperText: PropTypes.object,
105-
};
113+
};

0 commit comments

Comments
 (0)