Skip to content

Commit c775536

Browse files
committed
feat(headlines): truncate long names on saved filters page
Refactors the `SavedHeadlinesFiltersPage` to ensure long filter names are truncated with an ellipsis. This creates a consistent single-line display for all filter names, improving UI stability and readability.
1 parent 544bf9f commit c775536

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

lib/headlines-feed/view/saved_headlines_filters_page.dart

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,11 @@ class _SavedHeadlinesFiltersView extends StatelessWidget {
116116
title: Row(
117117
mainAxisSize: MainAxisSize.min,
118118
children: [
119-
// Use Flexible to ensure the Text widget truncates properly
120-
// within the Row, preventing layout overflow.
121-
Flexible(
122-
child: Text(
123-
filter.name,
124-
maxLines: 1,
125-
overflow: TextOverflow.ellipsis,
126-
),
119+
Text(
120+
filter.name,
121+
maxLines: 1,
122+
overflow: TextOverflow.ellipsis,
123+
softWrap: false,
127124
),
128125
if (filter.isPinned) ...[
129126
const SizedBox(width: AppSpacing.sm),

0 commit comments

Comments
 (0)