Skip to content

Commit

Permalink
Set position of loading indicator to fixed
Browse files Browse the repository at this point in the history
Purpose is to not let the side-elements move up when the page loads and
down afterwards
  • Loading branch information
joschrew committed Nov 5, 2024
1 parent 392ea42 commit ed38211
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/search/index.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<template>
<div class="row" v-if="loading">
<div class="col text-center">
<img src="@/assets/spin-1s-100px.gif" alt="Searching" style="position: fixed; z-index:10;" />
</div>
</div>
<div class="container mt-2 lg:px-10">
<Dialog
header="Filter"
Expand Down Expand Up @@ -40,11 +45,6 @@
</div>
</div>

<div class="row" v-if="loading">
<div class="col text-center">
<img src="@/assets/spin-1s-100px.gif" alt="Searching" />
</div>
</div>
<div class="row mt-3" v-if="!hasResult && !loading">
<div class="col">
<div class="card">
Expand Down

0 comments on commit ed38211

Please sign in to comment.