Skip to content

Commit ea4d051

Browse files
Fix task text overflow (#6351)
closes #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">
1 parent 5c8fe02 commit ea4d051

File tree

1 file changed

+10
-0
lines changed
  • packages/twenty-front/src/modules/activities/tasks/components

1 file changed

+10
-0
lines changed

packages/twenty-front/src/modules/activities/tasks/components/TaskRow.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const StyledContainer = styled.div`
2323
display: inline-flex;
2424
height: ${({ theme }) => theme.spacing(12)};
2525
min-width: calc(100% - ${({ theme }) => theme.spacing(8)});
26+
max-width: calc(100% - ${({ theme }) => theme.spacing(8)});
2627
padding: 0 ${({ theme }) => theme.spacing(4)};
28+
overflow: hidden;
2729
2830
&:last-child {
2931
border-bottom: 0;
@@ -33,6 +35,9 @@ const StyledContainer = styled.div`
3335
const StyledTaskBody = styled.div`
3436
color: ${({ theme }) => theme.font.color.tertiary};
3537
display: flex;
38+
max-width: 100%;
39+
flex: 1;
40+
overflow: hidden;
3641
`;
3742

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

4755
const StyledCommentIcon = styled.div`
@@ -73,6 +81,8 @@ const StyledPlaceholder = styled.div`
7381

7482
const StyledLeftSideContainer = styled.div`
7583
display: flex;
84+
flex: 1;
85+
overflow: hidden;
7686
`;
7787

7888
const StyledCheckboxContainer = styled.div`

0 commit comments

Comments
 (0)