limit maxlines

This commit is contained in:
Fabian Freund
2026-01-22 10:39:01 +01:00
parent 9ddf1daea9
commit 597e68cbc8
2 changed files with 10 additions and 0 deletions
@@ -129,6 +129,8 @@ class FeedSearch extends HookConsumerWidget {
_matchPrefix, _matchPrefix,
_matchSuffix, _matchSuffix,
), ),
maxLines: 2,
overflow: TextOverflow.ellipsis,
) )
: Text( : Text(
article.displayTitle, article.displayTitle,
@@ -158,6 +160,8 @@ class FeedSearch extends HookConsumerWidget {
_matchSuffix, _matchSuffix,
normalizeWhitespaces: true, normalizeWhitespaces: true,
), ),
maxLines: 3,
overflow: TextOverflow.ellipsis,
) )
else else
(article.summaryPlain != null) (article.summaryPlain != null)
@@ -178,6 +182,8 @@ class FeedSearch extends HookConsumerWidget {
style: theme.textTheme.bodySmall?.copyWith( style: theme.textTheme.bodySmall?.copyWith(
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
), ),
maxLines: 1,
overflow: TextOverflow.ellipsis,
), ),
), ),
], ],
@@ -205,6 +205,8 @@ class TabSearch extends HookConsumerWidget {
_matchPrefix, _matchPrefix,
_matchSuffix, _matchSuffix,
), ),
maxLines: 2,
overflow: TextOverflow.ellipsis,
), ),
), ),
subtitle: (bodyHasMatch || (urlHasMatch && !titleHasMatch)) subtitle: (bodyHasMatch || (urlHasMatch && !titleHasMatch))
@@ -222,6 +224,8 @@ class TabSearch extends HookConsumerWidget {
_matchSuffix, _matchSuffix,
normalizeWhitespaces: true, normalizeWhitespaces: true,
), ),
maxLines: 3,
overflow: TextOverflow.ellipsis,
) )
: UriBreadcrumb(uri: result.url), : UriBreadcrumb(uri: result.url),
onTap: () async { onTap: () async {