Skip to content

Commit 7c1dd74

Browse files
committed
fix(content_management): allow text overflow for headline title
- Wrap headline title Text widget in DataCell with maxLines set to 2 - Add TextOverflow.ellipsis to handle overflow - This change prevents layout issues with long headline titles
1 parent 632be8f commit 7c1dd74

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/content_management/view/headlines_page.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,13 @@ class _HeadlinesDataSource extends DataTableSource {
151151
}
152152
},
153153
cells: [
154-
DataCell(Text(headline.title)),
154+
DataCell(
155+
Text(
156+
headline.title,
157+
maxLines: 2,
158+
overflow: TextOverflow.ellipsis,
159+
),
160+
),
155161
DataCell(Text(headline.source.name)),
156162
DataCell(Text(headline.status.l10n(context))),
157163
DataCell(

0 commit comments

Comments
 (0)