Skip to content

Commit

Permalink
Merge pull request #114 from NazarUsov/testnet/issues
Browse files Browse the repository at this point in the history
Fix tab preloader
  • Loading branch information
sowle authored May 9, 2024
2 parents a1d86d0 + 30d9087 commit 17ccc24
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:host {
width: 100%;
height: 100%;
display: flex;
flex: 1;
flex-direction: row;
}

Expand Down
17 changes: 9 additions & 8 deletions html_source/src/app/pages/wallet/wallet/wallet.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,15 @@ const objTabs: { [key in TabNameKeys]: Tab } = {
</ng-container>
</div>
<div class="tabs-content">
<div style="flex: 1;" [ngStyle]="{ display: loader ? 'none' : 'flex' }">
<router-outlet></router-outlet>
</div>
<div class="preloader" *ngIf="loader">
<p class="mb-2">
{{ 'Loading...' | translate }}
</p>
<div class="loading-bar"></div>
<router-outlet></router-outlet>
<div *ngIf="loader" class="wrapper-tab-preloader">
<div class="preloader">
<p class="mb-2">
{{ 'Loading...' | translate }}
</p>
<div class="loading-bar"></div>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions html_source/src/assets/scss/components/_preloader.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.wrapper-tab-preloader {
display: flex; z-index: 999; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--blue-700);
}

.preloader {
align-self: center;
color: white;
Expand Down
2 changes: 1 addition & 1 deletion html_source/src/assets/scss/components/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
overflow: hidden;
border-radius: 0 0 0.8rem 0.8rem;
background-color: var(--blue-700);

padding: 2rem;
position: relative;
}
}

0 comments on commit 17ccc24

Please sign in to comment.