From e12e56bb1ed2cfe3e7c72dac21fd8acade950882 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 31 Oct 2026 20:44:52 +0100 Subject: [PATCH] Fix height of dialogs on mobile --- apps/client/src/app/app.component.ts | 2 +- .../asset-profile-dialog-host.component.ts | 2 +- .../app/components/admin-platform/admin-platform.component.ts | 4 ++-- .../src/app/components/admin-tag/admin-tag.component.ts | 4 ++-- .../src/app/components/admin-users/admin-users.component.ts | 2 +- .../access-dialog-host/access-dialog-host.component.ts | 2 +- .../account-dialog-host/account-dialog-host.component.ts | 4 ++-- .../pages/portfolio/activities/activities-page.component.ts | 4 ++-- .../activity-dialog-host/activity-dialog-host.component.ts | 2 +- .../pages/portfolio/allocations/allocations-page.component.ts | 2 +- apps/client/src/app/pages/register/register-page.component.ts | 2 +- apps/client/src/app/services/user/user.service.ts | 2 +- apps/client/src/index.html | 2 +- apps/client/src/styles.scss | 4 ++++ libs/ui/src/lib/benchmark/benchmark.component.ts | 2 +- .../historical-market-data-editor.component.ts | 2 +- 16 files changed, 23 insertions(+), 19 deletions(-) diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index 53d3505a1c..bc7f34ae0b 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -337,7 +337,7 @@ export class GfAppComponent implements OnInit { impersonationId: this.impersonationId, locale: this.user?.settings?.locale }, - height: this.deviceType === 'mobile' ? '98vh' : '80vh', + height: this.deviceType === 'mobile' ? '98dvh' : '80vh', width: this.deviceType === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/components/admin-market-data/asset-profile-dialog-host/asset-profile-dialog-host.component.ts b/apps/client/src/app/components/admin-market-data/asset-profile-dialog-host/asset-profile-dialog-host.component.ts index 26af45e20b..a4fe346371 100644 --- a/apps/client/src/app/components/admin-market-data/asset-profile-dialog-host/asset-profile-dialog-host.component.ts +++ b/apps/client/src/app/components/admin-market-data/asset-profile-dialog-host/asset-profile-dialog-host.component.ts @@ -151,7 +151,7 @@ export class GfAssetProfileDialogHostComponent implements OnDestroy, OnInit { deviceType: this.deviceType(), locale: user?.settings?.locale ?? DEFAULT_LOCALE } satisfies AssetProfileDialogParams, - height: this.deviceType() === 'mobile' ? '98vh' : '80vh', + height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.ts b/apps/client/src/app/components/admin-platform/admin-platform.component.ts index 10634d5dfb..0ce263c14d 100644 --- a/apps/client/src/app/components/admin-platform/admin-platform.component.ts +++ b/apps/client/src/app/components/admin-platform/admin-platform.component.ts @@ -184,7 +184,7 @@ export class GfAdminPlatformComponent implements OnInit { CreateOrUpdatePlatformDialogParams >(GfCreateOrUpdatePlatformDialogComponent, { data: {} satisfies CreateOrUpdatePlatformDialogParams, - height: this.deviceType() === 'mobile' ? '98vh' : undefined, + height: this.deviceType() === 'mobile' ? '98dvh' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); @@ -224,7 +224,7 @@ export class GfAdminPlatformComponent implements OnInit { url } } satisfies CreateOrUpdatePlatformDialogParams, - height: this.deviceType() === 'mobile' ? '98vh' : undefined, + height: this.deviceType() === 'mobile' ? '98dvh' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/components/admin-tag/admin-tag.component.ts b/apps/client/src/app/components/admin-tag/admin-tag.component.ts index e46044d1e4..3fd9f1a738 100644 --- a/apps/client/src/app/components/admin-tag/admin-tag.component.ts +++ b/apps/client/src/app/components/admin-tag/admin-tag.component.ts @@ -204,7 +204,7 @@ export class GfAdminTagComponent implements OnInit { CreateOrUpdateTagDialogParams >(GfCreateOrUpdateTagDialogComponent, { data: {} satisfies CreateOrUpdateTagDialogParams, - height: this.deviceType() === 'mobile' ? '98vh' : undefined, + height: this.deviceType() === 'mobile' ? '98dvh' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); @@ -243,7 +243,7 @@ export class GfAdminTagComponent implements OnInit { name } } satisfies CreateOrUpdateTagDialogParams, - height: this.deviceType() === 'mobile' ? '98vh' : undefined, + height: this.deviceType() === 'mobile' ? '98dvh' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/components/admin-users/admin-users.component.ts b/apps/client/src/app/components/admin-users/admin-users.component.ts index 8e459b4a40..7568f71c85 100644 --- a/apps/client/src/app/components/admin-users/admin-users.component.ts +++ b/apps/client/src/app/components/admin-users/admin-users.component.ts @@ -339,7 +339,7 @@ export class GfAdminUsersComponent implements OnInit { locale: this.user?.settings?.locale ?? DEFAULT_LOCALE, userId: aUserId } satisfies UserDetailDialogParams, - height: this.deviceType() === 'mobile' ? '98vh' : '60vh', + height: this.deviceType() === 'mobile' ? '98dvh' : '60vh', width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/components/user-account-access/access-dialog-host/access-dialog-host.component.ts b/apps/client/src/app/components/user-account-access/access-dialog-host/access-dialog-host.component.ts index 1adafb118b..2d64de3481 100644 --- a/apps/client/src/app/components/user-account-access/access-dialog-host/access-dialog-host.component.ts +++ b/apps/client/src/app/components/user-account-access/access-dialog-host/access-dialog-host.component.ts @@ -157,7 +157,7 @@ export class GfAccessDialogHostComponent implements OnDestroy, OnInit { CreateOrUpdateAccessDialogParams >(GfCreateOrUpdateAccessDialogComponent, { data, - height: this.deviceType() === 'mobile' ? '98vh' : undefined, + height: this.deviceType() === 'mobile' ? '98dvh' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/pages/accounts/account-dialog-host/account-dialog-host.component.ts b/apps/client/src/app/pages/accounts/account-dialog-host/account-dialog-host.component.ts index 0cc9476e3b..a505690cef 100644 --- a/apps/client/src/app/pages/accounts/account-dialog-host/account-dialog-host.component.ts +++ b/apps/client/src/app/pages/accounts/account-dialog-host/account-dialog-host.component.ts @@ -256,7 +256,7 @@ export class GfAccountDialogHostComponent implements OnDestroy, OnInit { hasPermission(user?.permissions, permissions.updateActivity) && !user?.settings?.isRestrictedView }, - height: this.deviceType() === 'mobile' ? '98vh' : '80vh', + height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); @@ -292,7 +292,7 @@ export class GfAccountDialogHostComponent implements OnDestroy, OnInit { account, user }, - height: this.deviceType() === 'mobile' ? '98vh' : '80vh', + height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts b/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts index b52339ddfa..de9022b3aa 100644 --- a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts +++ b/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts @@ -227,7 +227,7 @@ export class GfActivitiesPageComponent implements OnInit { deviceType: this.deviceType, user: this.user }, - height: this.deviceType === 'mobile' ? '98vh' : undefined, + height: this.deviceType === 'mobile' ? '98dvh' : undefined, width: this.deviceType === 'mobile' ? '100vw' : '50rem' }); @@ -259,7 +259,7 @@ export class GfActivitiesPageComponent implements OnInit { deviceType: this.deviceType, user: this.user }, - height: this.deviceType === 'mobile' ? '98vh' : undefined, + height: this.deviceType === 'mobile' ? '98dvh' : undefined, width: this.deviceType === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/pages/portfolio/activities/activity-dialog-host/activity-dialog-host.component.ts b/apps/client/src/app/pages/portfolio/activities/activity-dialog-host/activity-dialog-host.component.ts index 0d4ea8a14d..e998d1113c 100644 --- a/apps/client/src/app/pages/portfolio/activities/activity-dialog-host/activity-dialog-host.component.ts +++ b/apps/client/src/app/pages/portfolio/activities/activity-dialog-host/activity-dialog-host.component.ts @@ -186,7 +186,7 @@ export class GfActivityDialogHostComponent implements OnDestroy, OnInit { user, accounts: user?.accounts }, - height: deviceType === 'mobile' ? '98vh' : '80vh', + height: deviceType === 'mobile' ? '98dvh' : '80vh', width: deviceType === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts index 915c6833ab..496da8fb53 100644 --- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts +++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts @@ -670,7 +670,7 @@ export class GfAllocationsPageComponent implements OnInit { !this.user?.settings?.isRestrictedView, impersonationId: this.impersonationId }, - height: this.deviceType() === 'mobile' ? '98vh' : '80vh', + height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); 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 6a4825c4da..333bc6f1dd 100644 --- a/apps/client/src/app/pages/register/register-page.component.ts +++ b/apps/client/src/app/pages/register/register-page.component.ts @@ -89,7 +89,7 @@ export class GfRegisterPageComponent implements OnInit { needsToAcceptTermsOfService: this.hasPermissionForSubscription }, disableClose: true, - height: this.deviceType === 'mobile' ? '98vh' : undefined, + height: this.deviceType === 'mobile' ? '98dvh' : undefined, width: this.deviceType === 'mobile' ? '100vw' : '30rem' }); diff --git a/apps/client/src/app/services/user/user.service.ts b/apps/client/src/app/services/user/user.service.ts index ebc3a5fb96..fdaff1aa7a 100644 --- a/apps/client/src/app/services/user/user.service.ts +++ b/apps/client/src/app/services/user/user.service.ts @@ -167,7 +167,7 @@ export class UserService extends ObservableStore { user }, disableClose: true, - height: this.deviceType() === 'mobile' ? '98vh' : '80vh', + height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/index.html b/apps/client/src/index.html index 105e7bcae9..05264b2ff3 100644 --- a/apps/client/src/index.html +++ b/apps/client/src/index.html @@ -13,7 +13,7 @@ diff --git a/apps/client/src/styles.scss b/apps/client/src/styles.scss index f5ff40f138..11cee59dc8 100644 --- a/apps/client/src/styles.scss +++ b/apps/client/src/styles.scss @@ -386,6 +386,10 @@ ngx-skeleton-loader { } .mat-mdc-dialog-container { + .mat-mdc-dialog-surface { + padding-bottom: env(safe-area-inset-bottom); + } + .mdc-dialog__content { --mat-dialog-supporting-text-color: rgba(var(--dark-primary-text)); } diff --git a/libs/ui/src/lib/benchmark/benchmark.component.ts b/libs/ui/src/lib/benchmark/benchmark.component.ts index 485a9e371f..0cce14aa77 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.ts +++ b/libs/ui/src/lib/benchmark/benchmark.component.ts @@ -179,7 +179,7 @@ export class GfBenchmarkComponent implements OnInit { deviceType: this.deviceType(), locale: this.locale() }, - height: this.deviceType() === 'mobile' ? '98vh' : undefined, + height: this.deviceType() === 'mobile' ? '98dvh' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts b/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts index 03df8837c3..124aafaa9a 100644 --- a/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts +++ b/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts @@ -236,7 +236,7 @@ export class GfHistoricalMarketDataEditorComponent dateString: `${yearMonth}-${day}`, symbol: this.symbol }, - height: this.deviceType() === 'mobile' ? '98vh' : '80vh', + height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', width: this.deviceType() === 'mobile' ? '100vw' : '50rem' });