From a4c78739bbe0e4584402e541947b6fc36af90591 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 14 Mar 2025 08:00:07 +0100 Subject: [PATCH] Feature/improve width of user account registration dialog on mobile (#4434) * Improve width on mobile --- .../src/app/pages/register/register-page.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/client/src/app/pages/register/register-page.component.ts b/apps/client/src/app/pages/register/register-page.component.ts index 45fd53fc..66a5f4be 100644 --- a/apps/client/src/app/pages/register/register-page.component.ts +++ b/apps/client/src/app/pages/register/register-page.component.ts @@ -61,15 +61,18 @@ export class RegisterPageComponent implements OnDestroy, OnInit { public async onLoginWithInternetIdentity() { try { const { authToken } = await this.internetIdentityService.login(); + this.tokenStorageService.saveToken(authToken); - this.router.navigate(['/']); + + await this.router.navigate(['/']); } catch {} } public openShowAccessTokenDialog() { const dialogRef = this.dialog.open(ShowAccessTokenDialog, { disableClose: true, - width: '30rem' + height: this.deviceType === 'mobile' ? '98vh' : undefined, + width: this.deviceType === 'mobile' ? '100vw' : '30rem' }); dialogRef