Improve search UI

This commit is contained in:
Pieter Vander Vennet 2024-08-30 02:24:03 +02:00
parent 93f03ddbaf
commit cd6fa08770
2 changed files with 3 additions and 3 deletions

View file

@ -14,11 +14,11 @@
let dataIsLoading = state.dataIsLoading
let currentState = state.hasDataInView
currentState.data === ""
const t = Translations.t.centerMessage
const showingSearch = state.searchState.showSearchDrawer
</script>
{#if $currentState === "has-visible-features"}
{#if $currentState === "has-visible-features" || $showingSearch}
<!-- don't show anything -->
{:else if $currentState === "zoom-to-low"}
<div class="alert w-fit p-4">

View file

@ -372,7 +372,7 @@
<div class="alert w-fit">Faking a user (Testmode)</div>
</If>
</div>
<div class="flex w-full flex-col items-center justify-center">
<div class="flex w-full flex-col items-center justify-center" >
<!-- Flex and w-full are needed for the positioning -->
<!-- Centermessage -->
<StateIndicator {state} />