Skip to content

Commit

Permalink
fix: spinner style leaking
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu committed Nov 19, 2024
1 parent 183ba8e commit 500fd15
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions frontend/src/layouts/ProtectedLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ watch(termsAndConditionQuery.status, () => {
<SideNav v-if="termsAndConditionQuery.data.value === false" />
<div class="main">
<main>
<Spinner
v-if="termsAndConditionQuery.isLoading.value"
loading-text="Page loading"
/>
<div class="terms-and-condition-spinner-container">
<Spinner
v-if="termsAndConditionQuery.isLoading.value"
loading-text="Page loading"
/>
</div>
<router-view
v-if="termsAndConditionQuery.data.value === false"
/>
Expand All @@ -79,13 +81,15 @@ watch(termsAndConditionQuery.status, () => {
</template>
<style lang="scss">
#proctected-layout-container {
.spinner-container {
display: flex;
width: 100vw;
height: 85vh;
justify-content: center;
align-items: center;
margin-left: -18.5rem; // counter the sidenav offset
.terms-and-condition-spinner-container {
.spinner-container {
display: flex;
width: 100vw;
height: 85vh;
justify-content: center;
align-items: center;
margin-left: -18.5rem; // counter the sidenav offset
}
}
}
</style>

0 comments on commit 500fd15

Please sign in to comment.