Skip to content

Commit

Permalink
SF-3067 Fix offline indicator not displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebuss committed Nov 1, 2024
1 parent f0694f5 commit 6f6674f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/SIL.XForge.Scripture/ClientApp/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@
@if (showInstallIconOnAvatar$ | async) {
<mat-icon class="install-badge">install_mobile</mat-icon>
}
<app-avatar id="avatarId" [user]="currentUser">
@if (!isAppOnline) {
<mat-icon class="offline-indicator"> cloud_off</mat-icon>
}
</app-avatar>
<app-avatar id="avatarId" [user]="currentUser"> </app-avatar>
@if (!isAppOnline) {
<mat-icon class="offline-indicator">cloud_off</mat-icon>
}
</button>
}
<mat-menu #userMenu="matMenu" class="user-menu">
Expand Down
5 changes: 3 additions & 2 deletions src/SIL.XForge.Scripture/ClientApp/src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,12 @@ header {
}

.offline-indicator {
position: absolute;
inset-inline-end: 0;
position: fixed !important;
direction: inherit; // needed to override direction: rtl from .material-icons
font-size: 12px;
color: white;
top: 30px;
left: calc(100% - 35px);
}

.online-status {
Expand Down

0 comments on commit 6f6674f

Please sign in to comment.