limit maxlines
This commit is contained in:
+6
@@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
+4
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user