fix(Lists): fix flickering when list was a certain size

This commit is contained in:
Jordan Knott 2021-01-06 17:00:10 -06:00
parent 40b27aa1f1
commit 35ac12b7b2
2 changed files with 9 additions and 6 deletions

View File

@ -227,18 +227,19 @@ export const ListCardOperation = styled.span`
} }
`; `;
export const CardTitle = styled.span` export const CardTitle = styled.div`
clear: both; clear: both;
margin: 0 0 4px; margin: 0 0 4px;
overflow: hidden; overflow: hidden;
text-decoration: none; text-decoration: none;
color: ${props => props.theme.colors.text.primary};
display: block;
align-items: center;
`;
export const CardTitleText = styled.span`
word-wrap: break-word; word-wrap: break-word;
line-height: 18px; line-height: 18px;
font-size: 14px; font-size: 14px;
color: ${props => props.theme.colors.text.primary};
display: flex;
align-items: center;
`; `;
export const CardMembers = styled.div` export const CardMembers = styled.div`
@ -251,6 +252,7 @@ export const CompleteIcon = styled(CheckCircle)`
fill: ${props => props.theme.colors.success}; fill: ${props => props.theme.colors.success};
margin-right: 4px; margin-right: 4px;
flex-shrink: 0; flex-shrink: 0;
margin-bottom: -2px;
`; `;
export const EditorContent = styled.div` export const EditorContent = styled.div`

View File

@ -22,6 +22,7 @@ import {
ListCardOperation, ListCardOperation,
CardTitle, CardTitle,
CardMembers, CardMembers,
CardTitleText,
} from './Styles'; } from './Styles';
type DueDate = { type DueDate = {
@ -210,7 +211,7 @@ const Card = React.forwardRef(
) : ( ) : (
<CardTitle> <CardTitle>
{complete && <CompleteIcon width={16} height={16} />} {complete && <CompleteIcon width={16} height={16} />}
{`${title}${position ? ` - ${position}` : ''}`} <CardTitleText>{`${title}${position ? ` - ${position}` : ''}`}</CardTitleText>
</CardTitle> </CardTitle>
)} )}
<ListCardBadges> <ListCardBadges>