Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

only show 'No results found' on UI when no example queries can be found

ashilkn1840ccaac855
diff --git a/lib/ui/viewer/search/result/no_result_widget.dart b/lib/ui/viewer/search/result/no_result_widget.dart
index c76af71f0c..dccede3a44 100644
--- a/lib/ui/viewer/search/result/no_result_widget.dart
+++ b/lib/ui/viewer/search/result/no_result_widget.dart
@@ -76,10 +76,12 @@ class _NoResultWidgetState extends State<NoResultWidget> {
style: textTheme.largeBold,
),
const SizedBox(height: 6),
- Text(
- "Modify your query, or try searching for",
- style: textTheme.smallMuted,
- ),
+ searchTypeToQuerySuggestion.isNotEmpty
+ ? Text(
+ "Modify your query, or try searching for",
+ style: textTheme.smallMuted,
+ )
+ : const SizedBox.shrink(),
],
),
const SizedBox(height: 20),