mirror of
https://github.com/mempool/mempool.git
synced 2025-02-25 15:10:12 +01:00
[menu] only add space after @ username if username already contains @
This commit is contained in:
parent
2cddc5fdd8
commit
ed215aa4cd
1 changed files with 6 additions and 1 deletions
|
@ -3,7 +3,12 @@
|
|||
|
||||
<nav class="scrollable menu-click">
|
||||
<span *ngIf="userAuth" class="menu-click">
|
||||
<strong class="menu-click text-nowrap ellipsis">@ {{ userAuth.user.username }}</strong>
|
||||
<u class="menu-click text-nowrap ellipsis">
|
||||
<strong>
|
||||
<span *ngIf="userAuth.user.username.includes('@'); else usernamenospace">{{ userAuth.user.username }}</span>
|
||||
<ng-template #usernamenospace>@{{ userAuth.user.username }}</ng-template>
|
||||
</strong>
|
||||
</u>
|
||||
</span>
|
||||
<a *ngIf="!userAuth" class="d-flex justify-content-center align-items-center nav-link m-0 menu-click" routerLink="/login" role="tab" (click)="onLinkClick('/login')">
|
||||
<fa-icon class="menu-click" [icon]="['fas', 'user-circle']" [fixedWidth]="true" style="font-size: 25px;margin-right: 15px;"></fa-icon>
|
||||
|
|
Loading…
Add table
Reference in a new issue