Skip to content

Commit

Permalink
feat(profile): Update profile component display elements
Browse files Browse the repository at this point in the history
- Added a CSS class to the <h1> element for styling purposes
- Adjusted spacing and alignment of elements within the <h1> element
- Updated the positioning and styling of the total karma display

These changes improve the visual presentation of the player profile in the application.
  • Loading branch information
SakuraIsayeki committed Nov 26, 2023
1 parent c7b24f5 commit 55a3614
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<ng-container *ngIf="request$ | async as result else loading">
<ng-container *ngIf="result.model as profile else notFound">
<div class="text-center mb-5">
<h1>
<h1 class="d-inline-flex flex-row">
<ng-container *ngIf="profile.clan?.clanInfo as clan">
<div class="d-inline-flex flex-row pe-1 pb-2">
<div class="pe-1 pb-2">
<icon-clan-rank [clanRank]="profile.clan?.clanMemberRole" class="pe-1"></icon-clan-rank>
</div>

Expand All @@ -13,11 +13,11 @@ <h1>
>[{{clan.tag}}]</a>
</ng-container>

<span class="mx-3">{{profile.username}}</span>
<span class="mx-lg-3 mx-2">{{profile.username}}</span>

<ng-container *ngIf="profileTotalKarma$ | async as profileTotalKarma">
<div *ngIf="profileTotalKarma$ | async as profileTotalKarma">
<sup class="text-{{profileTotalKarma | karmaColor}}" ngbTooltip="Total Karma" placement="bottom">{{profileTotalKarma}}</sup>
</ng-container>
</div>
</h1>

<div class="h1">
Expand Down

0 comments on commit 55a3614

Please sign in to comment.