Web:Client:Adding an ellipsis to a long name in the info panel, adding the width of the name block as a percentage.

This commit is contained in:
Vlada Gazizova 2023-02-17 16:07:28 +03:00
parent c04e40618f
commit b1aaa20baf
2 changed files with 11 additions and 2 deletions

View File

@ -225,6 +225,13 @@ const StyledToggleButton = styled(ToggleButton)`
margin-top: -4px;
`;
const StyledText = styled(Text)`
flex-basis: 72%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
`;
export {
StyledBlock,
StyledHeading,
@ -247,4 +254,5 @@ export {
ScrollList,
StyledAccessSelector,
StyledToggleButton,
StyledText,
};

View File

@ -16,6 +16,7 @@ import {
StyledCrossIcon,
StyledHelpButton,
StyledDeleteIcon,
StyledText,
} from "../StyledInvitePanel";
const Item = ({
@ -110,9 +111,9 @@ const Item = ({
const displayBody = (
<>
<Text {...textProps} noSelect>
<StyledText {...textProps} noSelect>
{inputValue}
</Text>
</StyledText>
{hasError ? (
<>
<StyledHelpButton