diff --git a/webapp/src/components/__snapshots__/centerPanel.test.tsx.snap b/webapp/src/components/__snapshots__/centerPanel.test.tsx.snap index 6b7d6ac6c..f7f89108d 100644 --- a/webapp/src/components/__snapshots__/centerPanel.test.tsx.snap +++ b/webapp/src/components/__snapshots__/centerPanel.test.tsx.snap @@ -493,7 +493,9 @@ exports[`components/centerPanel return centerPanel and click on card to show car > i -
+
card1
@@ -525,7 +527,9 @@ exports[`components/centerPanel return centerPanel and click on card to show car > i -
+
card2
@@ -7970,7 +7974,9 @@ exports[`components/centerPanel should match snapshot for Kanban 1`] = ` > i -
+
card1
diff --git a/webapp/src/components/__snapshots__/workspace.test.tsx.snap b/webapp/src/components/__snapshots__/workspace.test.tsx.snap index 477eca951..57b992771 100644 --- a/webapp/src/components/__snapshots__/workspace.test.tsx.snap +++ b/webapp/src/components/__snapshots__/workspace.test.tsx.snap @@ -660,7 +660,9 @@ exports[`src/components/workspace return workspace and showcard 1`] = ` > i -
+
card-1
@@ -702,7 +704,9 @@ exports[`src/components/workspace return workspace and showcard 1`] = ` > i -
+
card-2
@@ -744,7 +748,9 @@ exports[`src/components/workspace return workspace and showcard 1`] = ` > i -
+
card-3
@@ -1042,7 +1048,9 @@ exports[`src/components/workspace return workspace readonly and showcard 1`] = ` > i -
+
card-1
@@ -1070,7 +1078,9 @@ exports[`src/components/workspace return workspace readonly and showcard 1`] = ` > i -
+
card-2
@@ -1098,7 +1108,9 @@ exports[`src/components/workspace return workspace readonly and showcard 1`] = ` > i -
+
card-3
@@ -1807,7 +1819,9 @@ exports[`src/components/workspace should match snapshot 1`] = ` > i -
+
card-1
@@ -1849,7 +1863,9 @@ exports[`src/components/workspace should match snapshot 1`] = ` > i -
+
card-2
@@ -1891,7 +1907,9 @@ exports[`src/components/workspace should match snapshot 1`] = ` > i -
+
card-3
@@ -2189,7 +2207,9 @@ exports[`src/components/workspace should match snapshot with readonly 1`] = ` > i -
+
card-1
@@ -2217,7 +2237,9 @@ exports[`src/components/workspace should match snapshot with readonly 1`] = ` > i -
+
card-2
@@ -2245,7 +2267,9 @@ exports[`src/components/workspace should match snapshot with readonly 1`] = ` > i -
+
card-3
diff --git a/webapp/src/components/kanban/__snapshots__/kanban.test.tsx.snap b/webapp/src/components/kanban/__snapshots__/kanban.test.tsx.snap index 8bfe29ab7..ad8a9bbf8 100644 --- a/webapp/src/components/kanban/__snapshots__/kanban.test.tsx.snap +++ b/webapp/src/components/kanban/__snapshots__/kanban.test.tsx.snap @@ -174,7 +174,9 @@ exports[`src/component/kanban/kanban return kanban and change title on KanbanCol > i -
+
title
@@ -206,7 +208,9 @@ exports[`src/component/kanban/kanban return kanban and change title on KanbanCol > i -
+
title
@@ -249,7 +253,9 @@ exports[`src/component/kanban/kanban return kanban and change title on KanbanCol > i -
+
title
@@ -461,7 +467,9 @@ exports[`src/component/kanban/kanban return kanban and click on KanbanCalculatio > i -
+
title
@@ -493,7 +501,9 @@ exports[`src/component/kanban/kanban return kanban and click on KanbanCalculatio > i -
+
title
@@ -536,7 +546,9 @@ exports[`src/component/kanban/kanban return kanban and click on KanbanCalculatio > i -
+
title
@@ -748,7 +760,9 @@ exports[`src/component/kanban/kanban should match snapshot 1`] = ` > i -
+
title
@@ -780,7 +794,9 @@ exports[`src/component/kanban/kanban should match snapshot 1`] = ` > i -
+
title
@@ -823,7 +839,9 @@ exports[`src/component/kanban/kanban should match snapshot 1`] = ` > i -
+
title
diff --git a/webapp/src/components/kanban/__snapshots__/kanbanCard.test.tsx.snap b/webapp/src/components/kanban/__snapshots__/kanbanCard.test.tsx.snap index bcb963d2e..bfab09af3 100644 --- a/webapp/src/components/kanban/__snapshots__/kanbanCard.test.tsx.snap +++ b/webapp/src/components/kanban/__snapshots__/kanbanCard.test.tsx.snap @@ -116,7 +116,9 @@ exports[`src/components/kanban/kanbanCard return kanbanCard and click on copy li > i -
+
title
@@ -248,7 +250,9 @@ exports[`src/components/kanban/kanbanCard return kanbanCard and click on delete > i -
+
title
@@ -380,7 +384,9 @@ exports[`src/components/kanban/kanbanCard return kanbanCard and click on duplica > i -
+
title
@@ -425,7 +431,9 @@ exports[`src/components/kanban/kanbanCard should match snapshot 1`] = ` > i -
+
title
@@ -456,7 +464,9 @@ exports[`src/components/kanban/kanbanCard should match snapshot with readonly 1` > i -
+
title
diff --git a/webapp/src/components/kanban/kanbanCard.scss b/webapp/src/components/kanban/kanbanCard.scss index fa75e0ac1..20064b506 100644 --- a/webapp/src/components/kanban/kanbanCard.scss +++ b/webapp/src/components/kanban/kanbanCard.scss @@ -67,6 +67,15 @@ width: 20px; height: 20px; } + + .octo-titletext { + display: -webkit-box; // stylelint-disable-line + overflow: hidden; + text-overflow: ellipsis; + max-height: 100px; + -webkit-line-clamp: 5; + -webkit-box-orient: vertical; // stylelint-disable-line + } } .IconButton { diff --git a/webapp/src/components/kanban/kanbanCard.tsx b/webapp/src/components/kanban/kanbanCard.tsx index 8c8e8dab3..b5e471b5a 100644 --- a/webapp/src/components/kanban/kanbanCard.tsx +++ b/webapp/src/components/kanban/kanbanCard.tsx @@ -142,7 +142,12 @@ const KanbanCard = React.memo((props: Props) => {
{ card.fields.icon ?
{card.fields.icon}
: undefined } -
{card.title || intl.formatMessage({id: 'KanbanCard.untitled', defaultMessage: 'Untitled'})}
+
+ {card.title || intl.formatMessage({id: 'KanbanCard.untitled', defaultMessage: 'Untitled'})} +
{visiblePropertyTemplates.map((template) => (