Skip to content

Commit 08af2ed

Browse files
committed
fix(content_management): allow source name to overflow with an ellipsis
- Modify DataCell to support multiline text with ellipsis overflow - Improve readability for long source names in the sources table
1 parent f8dd350 commit 08af2ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/content_management/view/sources_page.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,13 @@ class _SourcesDataSource extends DataTableSource {
150150
}
151151
},
152152
cells: [
153-
DataCell(Text(source.name)),
153+
DataCell(
154+
Text(
155+
source.name,
156+
maxLines: 2,
157+
overflow: TextOverflow.ellipsis,
158+
),
159+
),
154160
DataCell(Text(source.sourceType.localizedName(l10n))),
155161
DataCell(Text(source.status.l10n(context))),
156162
DataCell(

0 commit comments

Comments
 (0)