Skip to content

Commit f8dd350

Browse files
committed
refactor(content_management): improve topics page UI and code consistency
- Make topic name text ellipsis for long text - Adjust TODO comment format
1 parent 7c1dd74 commit f8dd350

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/content_management/view/topics_page.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,13 @@ class _TopicsDataSource extends DataTableSource {
149149
}
150150
},
151151
cells: [
152-
DataCell(Text(topic.name)),
152+
DataCell(
153+
Text(
154+
topic.name,
155+
maxLines: 2,
156+
overflow: TextOverflow.ellipsis,
157+
),
158+
),
153159
DataCell(Text(topic.status.l10n(context))),
154160
DataCell(
155161
Text(
@@ -172,7 +178,7 @@ class _TopicsDataSource extends DataTableSource {
172178
),
173179
IconButton(
174180
icon: const Icon(Icons.archive),
175-
tooltip: 'Archive', // todo(you): Will be fixed in l10n phase.
181+
tooltip: 'Archive', // TODO(you): Will be fixed in l10n phase.
176182
onPressed: () {
177183
// Dispatch delete event
178184
context.read<ContentManagementBloc>().add(

0 commit comments

Comments
 (0)