performance fix
This commit is contained in:
parent
b68f12d975
commit
5697445c08
|
@ -1,6 +1,6 @@
|
|||
<div class="outer-profile">
|
||||
<div class="profile flexcroll" #statusstream (scroll)="onScroll()">
|
||||
<div class="profile__floating-header" [ngStyle]="{'background-image':'url('+displayedAccount.header+')'}"
|
||||
<div *ngIf="!isLoading" class="profile__floating-header" [ngStyle]="{'background-image':'url('+displayedAccount.header+')'}"
|
||||
[class.profile__floating-header__activated]="showFloatingHeader">
|
||||
<div class="profile__floating-header__inner">
|
||||
<a href (click)="showAvatar(displayedAccount.avatar)" (auxclick)="openAccount()" title="open avatar">
|
||||
|
@ -9,9 +9,10 @@
|
|||
</a>
|
||||
|
||||
<div class="profile__floating-header__names">
|
||||
<h2 class="profile__floating-header__names__display-name" innerHTML="{{displayedAccount | accountEmoji }}"
|
||||
title="{{displayedAccount.display_name}}"></h2>
|
||||
<a class="profile__floating-header__names__fullhandle" href="{{displayedAccount.url}}" target="_blank" title="{{displayedAccount.acct}}">@{{displayedAccount.acct}}</a>
|
||||
<h2 class="profile__floating-header__names__display-name"
|
||||
innerHTML="{{displayedAccount | accountEmoji }}" title="{{displayedAccount.display_name}}"></h2>
|
||||
<a class="profile__floating-header__names__fullhandle" href="{{displayedAccount.url}}"
|
||||
target="_blank" title="{{displayedAccount.acct}}">@{{displayedAccount.acct}}</a>
|
||||
</div>
|
||||
|
||||
<div class="profile__floating-header__follow" *ngIf="relationship && !displayedAccount.moved">
|
||||
|
@ -91,13 +92,16 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-sub-header ">
|
||||
<div *ngIf="displayedAccount && hasNote" class="profile-description">
|
||||
<div class="profile-sub-header">
|
||||
|
||||
<div *ngIf="displayedAccount">
|
||||
<div *ngIf="hasNote" class="profile-description">
|
||||
<app-databinded-text class="profile-description__content" [textIsSelectable]="false" [text]="note"
|
||||
(accountSelected)="browseAccount($event)" (hashtagSelected)="browseHashtag($event)">
|
||||
</app-databinded-text>
|
||||
</div>
|
||||
<div class="profile-fields" *ngIf="displayedAccount && displayedAccount.fields.length > 0">
|
||||
|
||||
<div class="profile-fields" *ngIf="displayedAccount.fields.length > 0">
|
||||
<div class="profile-fields__field" *ngFor="let field of displayedAccount.fields">
|
||||
<div class="profile-fields__field--value"
|
||||
innerHTML="{{ displayedAccount | accountEmoji:field.value}}"
|
||||
|
@ -108,6 +112,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-statuses">
|
||||
<div *ngIf="!isLoading && !statusLoading && statuses.length == 0" class="profile-no-toots">
|
||||
|
|
Loading…
Reference in New Issue