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