- {#if $searchTerm.length === 0 && $filterResults.length === 0 && $activeFilters.length === 0 && $recentThemes.length === 0}
+ {#if $searchTerm.length === 0 && $activeFilters.length === 0 }
-
Use the search bar above to search for locations, filters and other maps
+
{/if}
- {#if $searchTerm.length > 0 && ($filterResults.length > 0 || $layerResults.length > 0)}
-
-
- Pick a filter below
-
-
- {#each $filterResultsClipped as filterResult (filterResult)}
-
- {/each}
-
- {#if $filterResults.length + $layerResults.length > $filterResultsClipped.length}
-
- ... and {$filterResults.length + $layerResults.length - $filterResultsClipped.length} more ...
-
- {/if}
-
- {/if}
-
-
- {#if $searchTerm.length > 0}
-
-
- Locations
-
- {#if $isSearching}
-
-
-
- {/if}
-
- {#if $results?.length > 0}
- {#each $results as entry (entry)}
-
- {/each}
-
- {:else if !$isSearching}
-
- "+$searchTerm+""})} />
-
- {/if}
-
-
- {/if}
-
+
-
- {#if $themeResults.length > 0}
-
-
- Other maps
-
- {#each $themeResults as entry (entry.id)}
-
- {/each}
-
- {/if}
-
- {#if $searchTerm.length === 0 && $recentlySeen?.length === 0 && $recentThemes.length === 0}
-
-
+
- Suggestions
-
-
-
+ {#if $allowOtherThemes}
+
{/if}
- {#if $searchTerm.length === 0 && $recentlySeen?.length > 0}
-
-
-
-
-
-
-
-
-
-
-
- {#each $recentlySeen as entry (entry)}
-
- {/each}
-
- {/if}
-
- {#if $searchTerm.length === 0 && $recentThemes?.length > 0 && $allowOtherThemes}
-
-
-
-
-
-
-
-
-
-
-
- {#each $recentThemes as themeId (themeId)}
-
- {/each}
-
-
- {/if}
-
-
diff --git a/src/UI/Search/ThemeResult.svelte b/src/UI/Search/ThemeResult.svelte
index 389dd36bb..9e1f93127 100644
--- a/src/UI/Search/ThemeResult.svelte
+++ b/src/UI/Search/ThemeResult.svelte
@@ -1,15 +1,15 @@
{#if entry}
-
@@ -17,7 +17,6 @@
-
{/if}
diff --git a/src/UI/Search/ThemeResults.svelte b/src/UI/Search/ThemeResults.svelte
new file mode 100644
index 000000000..6b87516d9
--- /dev/null
+++ b/src/UI/Search/ThemeResults.svelte
@@ -0,0 +1,57 @@
+
+
+
+{#if $themeResults.length > 0}
+
+
+
+
+ {#each $themeResults as entry (entry.id)}
+
+ {/each}
+
+{/if}
+
+{#if $searchTerm.length === 0 && $recentThemes?.length > 0}
+
+
+
+
+
+
+
+