fix loading animation positionning
This commit is contained in:
parent
235e81cccb
commit
bf687ebb62
|
@ -180,11 +180,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div [class.profile__status-switching-section]="isSwitchingSection">
|
||||||
<div *ngIf="!isLoading && !statusLoading && statuses.length == 0" class="profile-no-toots">
|
<div *ngIf="!isLoading && !statusLoading && statuses.length == 0" class="profile-no-toots">
|
||||||
no status found
|
no status found
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="statusSection === 'status'">
|
<div *ngIf="statusSection === 'status' && !statusLoading">
|
||||||
<div *ngFor="let statusWrapper of pinnedStatuses">
|
<div *ngFor="let statusWrapper of pinnedStatuses">
|
||||||
<app-status [statusWrapper]="statusWrapper" (browseHashtagEvent)="browseHashtag($event)"
|
<app-status [statusWrapper]="statusWrapper" (browseHashtagEvent)="browseHashtag($event)"
|
||||||
(browseAccountEvent)="browseAccount($event)" (browseThreadEvent)="browseThread($event)">
|
(browseAccountEvent)="browseAccount($event)" (browseThreadEvent)="browseThread($event)">
|
||||||
|
@ -192,7 +193,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div [class.profile__status-switching-section]="isSwitchingSection">
|
|
||||||
<div *ngFor="let statusWrapper of statuses">
|
<div *ngFor="let statusWrapper of statuses">
|
||||||
<div *ngIf="statusSection !== 'media'">
|
<div *ngIf="statusSection !== 'media'">
|
||||||
<app-status [statusWrapper]="statusWrapper" (browseHashtagEvent)="browseHashtag($event)"
|
<app-status [statusWrapper]="statusWrapper" (browseHashtagEvent)="browseHashtag($event)"
|
||||||
|
|
|
@ -355,6 +355,14 @@ export class UserProfileComponent implements OnInit {
|
||||||
this.isSwitchingSection = false;
|
this.isSwitchingSection = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.showFloatingStatusMenu) {
|
||||||
|
setTimeout(() => {
|
||||||
|
var element = this.statustream.nativeElement as HTMLElement;
|
||||||
|
const menuPosition = element.scrollHeight - this.profilestatuses.nativeElement.offsetHeight - 30 - 29;
|
||||||
|
element.scrollTop = menuPosition;
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue