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,
_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,
),
),
],
@@ -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 {