Skip to content

armgit / ente

Public Imported from GitHub
0

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

show go-to-map icon when there are no location tags in location tag search section

ashilkn67c61be99505
diff --git a/lib/ui/viewer/search/search_section.dart b/lib/ui/viewer/search/search_section.dart
index 304447efe2..515590dbc0 100644
--- a/lib/ui/viewer/search/search_section.dart
+++ b/lib/ui/viewer/search/search_section.dart
@@ -146,6 +146,12 @@ class _SearchSectionState extends State<SearchSection> {
),
const SizedBox(width: 8),
SearchSectionEmptyCTAIcon(widget.sectionType),
+ widget.sectionType == SectionType.location
+ ? const Padding(
+ padding: EdgeInsets.fromLTRB(8, 24, 8, 0),
+ child: GoToMapWidget(),
+ )
+ : const SizedBox.shrink(),
],
),
),