diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index bc7f34ae0b..bd9dece2f3 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -338,6 +338,8 @@ export class GfAppComponent implements OnInit { locale: this.user?.settings?.locale }, height: this.deviceType === 'mobile' ? '98dvh' : '80vh', + panelClass: + this.deviceType === 'mobile' ? 'gf-mobile-dialog' : undefined, 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 a4fe346371..d97225a225 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 @@ -152,6 +152,8 @@ export class GfAssetProfileDialogHostComponent implements OnDestroy, OnInit { locale: user?.settings?.locale ?? DEFAULT_LOCALE } satisfies AssetProfileDialogParams, height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, 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 0ce263c14d..cd5341142f 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 @@ -185,6 +185,8 @@ export class GfAdminPlatformComponent implements OnInit { >(GfCreateOrUpdatePlatformDialogComponent, { data: {} satisfies CreateOrUpdatePlatformDialogParams, height: this.deviceType() === 'mobile' ? '98dvh' : undefined, + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); @@ -225,6 +227,8 @@ export class GfAdminPlatformComponent implements OnInit { } } satisfies CreateOrUpdatePlatformDialogParams, height: this.deviceType() === 'mobile' ? '98dvh' : undefined, + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : 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 3fd9f1a738..2481c7202a 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 @@ -205,6 +205,8 @@ export class GfAdminTagComponent implements OnInit { >(GfCreateOrUpdateTagDialogComponent, { data: {} satisfies CreateOrUpdateTagDialogParams, height: this.deviceType() === 'mobile' ? '98dvh' : undefined, + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); @@ -244,6 +246,8 @@ export class GfAdminTagComponent implements OnInit { } } satisfies CreateOrUpdateTagDialogParams, height: this.deviceType() === 'mobile' ? '98dvh' : undefined, + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : 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 7568f71c85..e0bbf84d55 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 @@ -340,6 +340,8 @@ export class GfAdminUsersComponent implements OnInit { userId: aUserId } satisfies UserDetailDialogParams, height: this.deviceType() === 'mobile' ? '98dvh' : '60vh', + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, 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 2d64de3481..bc1f579d86 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 @@ -158,6 +158,8 @@ export class GfAccessDialogHostComponent implements OnDestroy, OnInit { >(GfCreateOrUpdateAccessDialogComponent, { data, height: this.deviceType() === 'mobile' ? '98dvh' : undefined, + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : 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 a505690cef..bf22be8ecb 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 @@ -257,6 +257,8 @@ export class GfAccountDialogHostComponent implements OnDestroy, OnInit { !user?.settings?.isRestrictedView }, height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); @@ -293,6 +295,8 @@ export class GfAccountDialogHostComponent implements OnDestroy, OnInit { user }, height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, 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 de9022b3aa..2c442f0403 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 @@ -228,6 +228,7 @@ export class GfActivitiesPageComponent implements OnInit { user: this.user }, height: this.deviceType === 'mobile' ? '98dvh' : undefined, + panelClass: this.deviceType === 'mobile' ? 'gf-mobile-dialog' : undefined, width: this.deviceType === 'mobile' ? '100vw' : '50rem' }); @@ -260,6 +261,7 @@ export class GfActivitiesPageComponent implements OnInit { user: this.user }, height: this.deviceType === 'mobile' ? '98dvh' : undefined, + panelClass: this.deviceType === 'mobile' ? 'gf-mobile-dialog' : 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 e998d1113c..1315d5b52f 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 @@ -187,6 +187,7 @@ export class GfActivityDialogHostComponent implements OnDestroy, OnInit { accounts: user?.accounts }, height: deviceType === 'mobile' ? '98dvh' : '80vh', + panelClass: deviceType === 'mobile' ? 'gf-mobile-dialog' : undefined, 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 496da8fb53..e2ae6a6edf 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 @@ -671,6 +671,8 @@ export class GfAllocationsPageComponent implements OnInit { impersonationId: this.impersonationId }, height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, 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 333bc6f1dd..18dee0ed9c 100644 --- a/apps/client/src/app/pages/register/register-page.component.ts +++ b/apps/client/src/app/pages/register/register-page.component.ts @@ -90,6 +90,7 @@ export class GfRegisterPageComponent implements OnInit { }, disableClose: true, height: this.deviceType === 'mobile' ? '98dvh' : undefined, + panelClass: this.deviceType === 'mobile' ? 'gf-mobile-dialog' : 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 fdaff1aa7a..9ea225f7c9 100644 --- a/apps/client/src/app/services/user/user.service.ts +++ b/apps/client/src/app/services/user/user.service.ts @@ -168,6 +168,8 @@ export class UserService extends ObservableStore { }, disableClose: true, height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' }); diff --git a/apps/client/src/styles.scss b/apps/client/src/styles.scss index ae77c9d9a9..d5929f1dc3 100644 --- a/apps/client/src/styles.scss +++ b/apps/client/src/styles.scss @@ -349,6 +349,12 @@ ngx-skeleton-loader { cursor: pointer; } +.gf-mobile-dialog { + .mat-mdc-dialog-surface { + padding-bottom: env(safe-area-inset-bottom); + } +} + .gf-promotion-badge { background-color: var(--oc-orange-5); } @@ -390,10 +396,6 @@ 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 0cce14aa77..d0749e20d5 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.ts +++ b/libs/ui/src/lib/benchmark/benchmark.component.ts @@ -180,6 +180,8 @@ export class GfBenchmarkComponent implements OnInit { locale: this.locale() }, height: this.deviceType() === 'mobile' ? '98dvh' : undefined, + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : 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 124aafaa9a..6da916a8ef 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 @@ -237,6 +237,8 @@ export class GfHistoricalMarketDataEditorComponent symbol: this.symbol }, height: this.deviceType() === 'mobile' ? '98dvh' : '80vh', + panelClass: + this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined, width: this.deviceType() === 'mobile' ? '100vw' : '50rem' });