From 597e68cbc8748a51825785668f3c08775c076855 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Thu, 22 Jan 2026 10:39:01 +0100 Subject: [PATCH] limit maxlines --- .../presentation/widgets/search_modules/feed_search.dart | 6 ++++++ .../presentation/widgets/search_modules/tab_search.dart | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/app/lib/features/geckoview/features/search/presentation/widgets/search_modules/feed_search.dart b/app/lib/features/geckoview/features/search/presentation/widgets/search_modules/feed_search.dart index 04aed584..f64c39d4 100644 --- a/app/lib/features/geckoview/features/search/presentation/widgets/search_modules/feed_search.dart +++ b/app/lib/features/geckoview/features/search/presentation/widgets/search_modules/feed_search.dart @@ -129,6 +129,8 @@ class FeedSearch extends HookConsumerWidget { _matchPrefix, _matchSuffix, ), + maxLines: 2, + overflow: TextOverflow.ellipsis, ) : Text( article.displayTitle, @@ -158,6 +160,8 @@ class FeedSearch extends HookConsumerWidget { _matchSuffix, normalizeWhitespaces: true, ), + maxLines: 3, + overflow: TextOverflow.ellipsis, ) else (article.summaryPlain != null) @@ -178,6 +182,8 @@ class FeedSearch extends HookConsumerWidget { style: theme.textTheme.bodySmall?.copyWith( fontStyle: FontStyle.italic, ), + maxLines: 1, + overflow: TextOverflow.ellipsis, ), ), ], diff --git a/app/lib/features/geckoview/features/search/presentation/widgets/search_modules/tab_search.dart b/app/lib/features/geckoview/features/search/presentation/widgets/search_modules/tab_search.dart index dd2c0228..11d32fe1 100644 --- a/app/lib/features/geckoview/features/search/presentation/widgets/search_modules/tab_search.dart +++ b/app/lib/features/geckoview/features/search/presentation/widgets/search_modules/tab_search.dart @@ -205,6 +205,8 @@ class TabSearch extends HookConsumerWidget { _matchPrefix, _matchSuffix, ), + maxLines: 2, + overflow: TextOverflow.ellipsis, ), ), subtitle: (bodyHasMatch || (urlHasMatch && !titleHasMatch)) @@ -222,6 +224,8 @@ class TabSearch extends HookConsumerWidget { _matchSuffix, normalizeWhitespaces: true, ), + maxLines: 3, + overflow: TextOverflow.ellipsis, ) : UriBreadcrumb(uri: result.url), onTap: () async {