306 implement multi relation picker for person and try to factorize relation picker (#319)
* Removed useless folder * First working version * Refactored MultipleEntitySelect and splitted into 2 components * Added TODO * Removed useless Query * Fixed refetch * Fixed naming * Fix tests --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
29
front/src/modules/comments/components/CellCommentChip.tsx
Normal file
29
front/src/modules/comments/components/CellCommentChip.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
import { CommentChip, CommentChipProps } from './CommentChip';
|
||||
|
||||
// TODO: tie those fixed values to the other components in the cell
|
||||
const StyledCellWrapper = styled.div`
|
||||
position: absolute;
|
||||
right: -46px;
|
||||
top: 3px;
|
||||
`;
|
||||
|
||||
const StyledCommentChipContainer = styled.div`
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
position: relative;
|
||||
|
||||
right: 50px;
|
||||
width: 50px;
|
||||
`;
|
||||
|
||||
export function CellCommentChip(props: CommentChipProps) {
|
||||
return (
|
||||
<StyledCellWrapper>
|
||||
<StyledCommentChipContainer>
|
||||
<CommentChip {...props} />
|
||||
</StyledCommentChipContainer>
|
||||
</StyledCellWrapper>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user