From 0005b3b6d4c106a78567afc5346f7374de28c5d3 Mon Sep 17 00:00:00 2001 From: akastijn Date: Sun, 12 Oct 2025 21:42:58 +0200 Subject: [PATCH] Set login dialog width to 400px in auth guard. --- frontend/src/app/guards/auth.guard.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/guards/auth.guard.ts b/frontend/src/app/guards/auth.guard.ts index 993acbf..60ac5fa 100644 --- a/frontend/src/app/guards/auth.guard.ts +++ b/frontend/src/app/guards/auth.guard.ts @@ -23,7 +23,9 @@ export class AuthGuard implements CanActivate { ): Observable | Promise | boolean | UrlTree { if (!this.authService.checkAuthStatus()) { this.router.createUrlTree(['/']); - const dialogRef = this.dialog.open(LoginDialogComponent); + const dialogRef = this.dialog.open(LoginDialogComponent, { + width: '400px', + }) return dialogRef.afterClosed().pipe( map(result => { if (result) {