Skip to content

Commit b8b3a42

Browse files
committed
Only show a preview of the Headline in Organizations list
1 parent 3f842bb commit b8b3a42

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

frontend/src/modules/organization/components/list/organization-list-table.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
v-if="scope.row.headline || scope.row.description"
137137
class="text-sm h-full flex items-center text-gray-900"
138138
>
139-
{{ scope.row.headline || scope.row.description }}
139+
{{ truncateText((scope.row.headline || scope.row.description)) }}
140140
</span>
141141
<span
142142
v-else
@@ -838,6 +838,13 @@ const onTableMouseLeft = () => {
838838
isScrollbarVisible.value = isCursorDown.value;
839839
};
840840
841+
const truncateText = (text, characters = 200, suffix = '') => {
842+
if (text.length > characters) {
843+
return `${text.substring(0, characters)}` + suffix;
844+
}
845+
return text;
846+
}
847+
841848
const emailsColumnWidth = computed(() => {
842849
let maxTabWidth = 0;
843850
organizations.value.forEach((row) => {

0 commit comments

Comments
 (0)