Merge pull request #15459 from strapi/fix/relations-with-long-names-shouldnt-break-drag-preview

This commit is contained in:
Josh 2023-01-16 13:00:28 +00:00 committed by GitHub
commit 09d05be44c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,12 +43,14 @@ export const RelationDragPreview = ({ status, displayedValue, width }) => {
<IconButton noBorder>
<Drag />
</IconButton>
<ChildrenWrapper justifyContent="space-between">
<LinkEllipsis minWidth={0} paddingTop={1} paddingBottom={1} paddingRight={4}>
<Typography textColor="primary600" ellipsis>
{displayedValue}
</Typography>
</LinkEllipsis>
<ChildrenWrapper maxWidth="100%" justifyContent="space-between">
<Box minWidth={0} paddingTop={1} paddingBottom={1} paddingRight={4}>
<LinkEllipsis>
<Typography textColor="primary600" ellipsis>
{displayedValue}
</Typography>
</LinkEllipsis>
</Box>
{status && (
<Status variant={statusColor} showBullet={false} size="S">
<Typography fontWeight="bold" textColor={`${statusColor}700`}>