Skip to content

Commit 59451c7

Browse files
committed
feat(headlines): truncate long filter names in saved filters bar
Enhances the `SavedFiltersBar` UI by ensuring long names on pinned filter chips are gracefully truncated with an ellipsis. This maintains a clean, single-line display and improves layout consistency.
1 parent 09d6270 commit 59451c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/headlines-feed/widgets/saved_filters_bar.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ class _SavedFiltersBarState extends State<SavedFiltersBar> {
211211
horizontal: AppSpacing.xs,
212212
),
213213
child: ChoiceChip(
214-
label: Text(filter.name),
214+
label: Text(
215+
filter.name,
216+
maxLines: 1,
217+
overflow: TextOverflow.ellipsis,
218+
),
215219
labelPadding: const EdgeInsets.symmetric(
216220
horizontal: AppSpacing.xs,
217221
),

0 commit comments

Comments
 (0)