Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix task text overflow #6351

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const StyledContainer = styled.div`
display: inline-flex;
height: ${({ theme }) => theme.spacing(12)};
min-width: calc(100% - ${({ theme }) => theme.spacing(8)});
max-width: calc(100% - ${({ theme }) => theme.spacing(8)});
padding: 0 ${({ theme }) => theme.spacing(4)};
overflow: hidden;

&:last-child {
border-bottom: 0;
Expand All @@ -33,6 +35,9 @@ const StyledContainer = styled.div`
const StyledTaskBody = styled.div`
color: ${({ theme }) => theme.font.color.tertiary};
display: flex;
max-width: 100%;
flex: 1;
overflow: hidden;
`;

const StyledTaskTitle = styled.div<{
Expand All @@ -42,6 +47,9 @@ const StyledTaskTitle = styled.div<{
font-weight: ${({ theme }) => theme.font.weight.medium};
padding: 0 ${({ theme }) => theme.spacing(2)};
text-decoration: ${({ completed }) => (completed ? 'line-through' : 'none')};
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
`;

const StyledCommentIcon = styled.div`
Expand Down Expand Up @@ -73,6 +81,8 @@ const StyledPlaceholder = styled.div`

const StyledLeftSideContainer = styled.div`
display: flex;
flex: 1;
overflow: hidden;
`;

const StyledCheckboxContainer = styled.div`
Expand Down
Loading