Fix issue 2130: text overflow on setting member page (#2192)
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
import styled from '@emotion/styled';
|
import styled from '@emotion/styled';
|
||||||
|
|
||||||
|
import { OverflowingTextWithTooltip } from '@/ui/display/tooltip/OverflowingTextWithTooltip';
|
||||||
import { Avatar } from '@/users/components/Avatar';
|
import { Avatar } from '@/users/components/Avatar';
|
||||||
import { User } from '~/generated/graphql';
|
import { User } from '~/generated/graphql';
|
||||||
|
|
||||||
@ -20,10 +21,7 @@ const StyledContent = styled.div`
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-left: ${({ theme }) => theme.spacing(3)};
|
margin-left: ${({ theme }) => theme.spacing(3)};
|
||||||
`;
|
overflow: auto;
|
||||||
|
|
||||||
const StyledNameText = styled.span`
|
|
||||||
color: ${({ theme }) => theme.font.color.primary};
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledEmailText = styled.span`
|
const StyledEmailText = styled.span`
|
||||||
@ -53,7 +51,7 @@ export const WorkspaceMemberCard = ({
|
|||||||
size="xl"
|
size="xl"
|
||||||
/>
|
/>
|
||||||
<StyledContent>
|
<StyledContent>
|
||||||
<StyledNameText>{workspaceMember.user.displayName}</StyledNameText>
|
<OverflowingTextWithTooltip text={workspaceMember.user.displayName} />
|
||||||
<StyledEmailText>{workspaceMember.user.email}</StyledEmailText>
|
<StyledEmailText>{workspaceMember.user.email}</StyledEmailText>
|
||||||
</StyledContent>
|
</StyledContent>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user