Skip to content

Commit

Permalink
fix: loading bar sticky on page top
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjackwills committed Apr 19, 2024
1 parent 8435239 commit 132cfb2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/ThePage.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

<template>

<v-container fluid class='ma-0 pa-0 no-gutters' :class='{"fill-height":fillHeight}'>
<v-progress-linear
:active='true'
:indeterminate='loading'
bg-opacity='0'
class='mb-n2'
class='mb-n2 sticky-loading'
color='primary'
top
/>

<v-row
Expand Down Expand Up @@ -43,9 +43,7 @@
<script setup lang='ts'>
import type { VRow } from 'vuetify/components/VGrid';
const loading = computed((): boolean => {
return loadingModule().loading;
});
const loading = computed(() => loadingModule().loading);
withDefaults(defineProps<{
fillHeight?: boolean,
Expand Down Expand Up @@ -85,4 +83,9 @@ withDefaults(defineProps<{
top: 0;
z-index: 100;
}
.sticky-loading{
position: fixed;
z-index: 101;
}
</style>

0 comments on commit 132cfb2

Please sign in to comment.