forked from MapComplete/MapComplete
Improve search UI
This commit is contained in:
parent
93f03ddbaf
commit
cd6fa08770
2 changed files with 3 additions and 3 deletions
|
@ -14,11 +14,11 @@
|
||||||
|
|
||||||
let dataIsLoading = state.dataIsLoading
|
let dataIsLoading = state.dataIsLoading
|
||||||
let currentState = state.hasDataInView
|
let currentState = state.hasDataInView
|
||||||
currentState.data === ""
|
|
||||||
const t = Translations.t.centerMessage
|
const t = Translations.t.centerMessage
|
||||||
|
const showingSearch = state.searchState.showSearchDrawer
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $currentState === "has-visible-features"}
|
{#if $currentState === "has-visible-features" || $showingSearch}
|
||||||
<!-- don't show anything -->
|
<!-- don't show anything -->
|
||||||
{:else if $currentState === "zoom-to-low"}
|
{:else if $currentState === "zoom-to-low"}
|
||||||
<div class="alert w-fit p-4">
|
<div class="alert w-fit p-4">
|
||||||
|
|
|
@ -372,7 +372,7 @@
|
||||||
<div class="alert w-fit">Faking a user (Testmode)</div>
|
<div class="alert w-fit">Faking a user (Testmode)</div>
|
||||||
</If>
|
</If>
|
||||||
</div>
|
</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 -->
|
<!-- Flex and w-full are needed for the positioning -->
|
||||||
<!-- Centermessage -->
|
<!-- Centermessage -->
|
||||||
<StateIndicator {state} />
|
<StateIndicator {state} />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue