Skip to content

Commit

Permalink
Fix task text overflow (twentyhq#6351)
Browse files Browse the repository at this point in the history
closes twentyhq#5552

<img width="754" alt="Bildschirmfoto 2024-07-19 um 23 35 25"
src="https://github.com/user-attachments/assets/715192cd-679d-430a-95f1-8bc1d8fd26f4">
  • Loading branch information
brendanlaschke authored and lucasbordeau committed Jul 24, 2024
1 parent ebb3540 commit c811e64
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit c811e64

Please sign in to comment.