mirror of https://github.com/Chocobozzz/PeerTube
Avoid layout shift in account setup modal
parent
bf80903fde
commit
1ff15061b3
|
@ -5,7 +5,7 @@
|
|||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<img class="mascot" src="/client/assets/images/mascot/happy.svg" alt="mascot">
|
||||
<img class="mascot" src="/client/assets/images/mascot/happy.svg" alt="">
|
||||
|
||||
<div i18n class="subtitle">It's time to set up your account profile!</div>
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
@include margin-right(2rem);
|
||||
|
||||
display: block;
|
||||
min-width: 170px;
|
||||
width: 170px;
|
||||
height: 220px;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
|
|
|
@ -45,11 +45,12 @@ export class AccountSetupModalComponent implements OnInit {
|
|||
|
||||
ngOnInit () {
|
||||
this.serverConfig = this.serverService.getHTMLConfig()
|
||||
this.user = this.authService.getUser()
|
||||
|
||||
this.authService.userInformationLoaded
|
||||
.subscribe(
|
||||
() => {
|
||||
this.user = this.authService.getUser()
|
||||
|
||||
if (this.isUserRoot) return
|
||||
if (this.hasAccountAvatar && this.hasAccountDescription) return
|
||||
if (this.userService.hasSignupInThisSession()) return
|
||||
|
|
Loading…
Reference in New Issue