Skip to content

Commit a4c7873

Browse files
authored
Feature/improve width of user account registration dialog on mobile (ghostfolio#4434)
* Improve width on mobile
1 parent f528c45 commit a4c7873

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/client/src/app/pages/register/register-page.component.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,18 @@ export class RegisterPageComponent implements OnDestroy, OnInit {
6161
public async onLoginWithInternetIdentity() {
6262
try {
6363
const { authToken } = await this.internetIdentityService.login();
64+
6465
this.tokenStorageService.saveToken(authToken);
65-
this.router.navigate(['/']);
66+
67+
await this.router.navigate(['/']);
6668
} catch {}
6769
}
6870

6971
public openShowAccessTokenDialog() {
7072
const dialogRef = this.dialog.open(ShowAccessTokenDialog, {
7173
disableClose: true,
72-
width: '30rem'
74+
height: this.deviceType === 'mobile' ? '98vh' : undefined,
75+
width: this.deviceType === 'mobile' ? '100vw' : '30rem'
7376
});
7477

7578
dialogRef

0 commit comments

Comments
 (0)