Front small ui fixes (#428)

* fix: add ellipsis in all table cells

* fix: workspace click redirect to home

* fix: add company chip story and edit comment cell story

* fix: remove cursor pointer on workspace name

* fix: snoop pill height

* fix: rebase
This commit is contained in:
Jérémy M
2023-06-27 17:56:48 +02:00
committed by GitHub
parent edee69bc07
commit c9038bb93a
15 changed files with 144 additions and 61 deletions

View File

@ -34,6 +34,12 @@ const StyledContainer = styled.span`
white-space: nowrap;
`;
const StyledName = styled.span`
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`;
export function PersonChip({ name, picture }: PersonChipPropsType) {
return (
<StyledContainer data-testid="person-chip">
@ -42,7 +48,7 @@ export function PersonChip({ name, picture }: PersonChipPropsType) {
src={picture ? picture.toString() : PersonPlaceholder.toString()}
alt="person"
/>
{name}
<StyledName>{name}</StyledName>
</StyledContainer>
);
}