Skip to content

Commit

Permalink
Improve search UI
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Aug 30, 2024
1 parent 93f03dd commit cd6fa08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/UI/BigComponents/StateIndicator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion src/UI/ThemeViewGUI.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
Expand Down

0 comments on commit cd6fa08

Please sign in to comment.