Browse Source

Fix height of dialogs on mobile

pull/8373/head
Thomas Kaul 4 weeks ago
parent
commit
e12e56bb1e
  1. 2
      apps/client/src/app/app.component.ts
  2. 2
      apps/client/src/app/components/admin-market-data/asset-profile-dialog-host/asset-profile-dialog-host.component.ts
  3. 4
      apps/client/src/app/components/admin-platform/admin-platform.component.ts
  4. 4
      apps/client/src/app/components/admin-tag/admin-tag.component.ts
  5. 2
      apps/client/src/app/components/admin-users/admin-users.component.ts
  6. 2
      apps/client/src/app/components/user-account-access/access-dialog-host/access-dialog-host.component.ts
  7. 4
      apps/client/src/app/pages/accounts/account-dialog-host/account-dialog-host.component.ts
  8. 4
      apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
  9. 2
      apps/client/src/app/pages/portfolio/activities/activity-dialog-host/activity-dialog-host.component.ts
  10. 2
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts
  11. 2
      apps/client/src/app/pages/register/register-page.component.ts
  12. 2
      apps/client/src/app/services/user/user.service.ts
  13. 2
      apps/client/src/index.html
  14. 4
      apps/client/src/styles.scss
  15. 2
      libs/ui/src/lib/benchmark/benchmark.component.ts
  16. 2
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts

2
apps/client/src/app/app.component.ts

@ -337,7 +337,7 @@ export class GfAppComponent implements OnInit {
impersonationId: this.impersonationId, impersonationId: this.impersonationId,
locale: this.user?.settings?.locale locale: this.user?.settings?.locale
}, },
height: this.deviceType === 'mobile' ? '98vh' : '80vh', height: this.deviceType === 'mobile' ? '98dvh' : '80vh',
width: this.deviceType === 'mobile' ? '100vw' : '50rem' width: this.deviceType === 'mobile' ? '100vw' : '50rem'
}); });

2
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(), deviceType: this.deviceType(),
locale: user?.settings?.locale ?? DEFAULT_LOCALE locale: user?.settings?.locale ?? DEFAULT_LOCALE
} satisfies AssetProfileDialogParams, } satisfies AssetProfileDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : '80vh', height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

4
apps/client/src/app/components/admin-platform/admin-platform.component.ts

@ -184,7 +184,7 @@ export class GfAdminPlatformComponent implements OnInit {
CreateOrUpdatePlatformDialogParams CreateOrUpdatePlatformDialogParams
>(GfCreateOrUpdatePlatformDialogComponent, { >(GfCreateOrUpdatePlatformDialogComponent, {
data: {} satisfies CreateOrUpdatePlatformDialogParams, data: {} satisfies CreateOrUpdatePlatformDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : undefined, height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });
@ -224,7 +224,7 @@ export class GfAdminPlatformComponent implements OnInit {
url url
} }
} satisfies CreateOrUpdatePlatformDialogParams, } satisfies CreateOrUpdatePlatformDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : undefined, height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

4
apps/client/src/app/components/admin-tag/admin-tag.component.ts

@ -204,7 +204,7 @@ export class GfAdminTagComponent implements OnInit {
CreateOrUpdateTagDialogParams CreateOrUpdateTagDialogParams
>(GfCreateOrUpdateTagDialogComponent, { >(GfCreateOrUpdateTagDialogComponent, {
data: {} satisfies CreateOrUpdateTagDialogParams, data: {} satisfies CreateOrUpdateTagDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : undefined, height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });
@ -243,7 +243,7 @@ export class GfAdminTagComponent implements OnInit {
name name
} }
} satisfies CreateOrUpdateTagDialogParams, } satisfies CreateOrUpdateTagDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : undefined, height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

2
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, locale: this.user?.settings?.locale ?? DEFAULT_LOCALE,
userId: aUserId userId: aUserId
} satisfies UserDetailDialogParams, } satisfies UserDetailDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : '60vh', height: this.deviceType() === 'mobile' ? '98dvh' : '60vh',
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

2
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 CreateOrUpdateAccessDialogParams
>(GfCreateOrUpdateAccessDialogComponent, { >(GfCreateOrUpdateAccessDialogComponent, {
data, data,
height: this.deviceType() === 'mobile' ? '98vh' : undefined, height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

4
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) && hasPermission(user?.permissions, permissions.updateActivity) &&
!user?.settings?.isRestrictedView !user?.settings?.isRestrictedView
}, },
height: this.deviceType() === 'mobile' ? '98vh' : '80vh', height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });
@ -292,7 +292,7 @@ export class GfAccountDialogHostComponent implements OnDestroy, OnInit {
account, account,
user user
}, },
height: this.deviceType() === 'mobile' ? '98vh' : '80vh', height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

4
apps/client/src/app/pages/portfolio/activities/activities-page.component.ts

@ -227,7 +227,7 @@ export class GfActivitiesPageComponent implements OnInit {
deviceType: this.deviceType, deviceType: this.deviceType,
user: this.user user: this.user
}, },
height: this.deviceType === 'mobile' ? '98vh' : undefined, height: this.deviceType === 'mobile' ? '98dvh' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '50rem' width: this.deviceType === 'mobile' ? '100vw' : '50rem'
}); });
@ -259,7 +259,7 @@ export class GfActivitiesPageComponent implements OnInit {
deviceType: this.deviceType, deviceType: this.deviceType,
user: this.user user: this.user
}, },
height: this.deviceType === 'mobile' ? '98vh' : undefined, height: this.deviceType === 'mobile' ? '98dvh' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '50rem' width: this.deviceType === 'mobile' ? '100vw' : '50rem'
}); });

2
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, user,
accounts: user?.accounts accounts: user?.accounts
}, },
height: deviceType === 'mobile' ? '98vh' : '80vh', height: deviceType === 'mobile' ? '98dvh' : '80vh',
width: deviceType === 'mobile' ? '100vw' : '50rem' width: deviceType === 'mobile' ? '100vw' : '50rem'
}); });

2
apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

@ -670,7 +670,7 @@ export class GfAllocationsPageComponent implements OnInit {
!this.user?.settings?.isRestrictedView, !this.user?.settings?.isRestrictedView,
impersonationId: this.impersonationId impersonationId: this.impersonationId
}, },
height: this.deviceType() === 'mobile' ? '98vh' : '80vh', height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

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

@ -89,7 +89,7 @@ export class GfRegisterPageComponent implements OnInit {
needsToAcceptTermsOfService: this.hasPermissionForSubscription needsToAcceptTermsOfService: this.hasPermissionForSubscription
}, },
disableClose: true, disableClose: true,
height: this.deviceType === 'mobile' ? '98vh' : undefined, height: this.deviceType === 'mobile' ? '98dvh' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '30rem' width: this.deviceType === 'mobile' ? '100vw' : '30rem'
}); });

2
apps/client/src/app/services/user/user.service.ts

@ -167,7 +167,7 @@ export class UserService extends ObservableStore<UserStoreState> {
user user
}, },
disableClose: true, disableClose: true,
height: this.deviceType() === 'mobile' ? '98vh' : '80vh', height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

2
apps/client/src/index.html

@ -13,7 +13,7 @@
<meta content="${rootUrl}/${featureGraphicPath}" name="twitter:image" /> <meta content="${rootUrl}/${featureGraphicPath}" name="twitter:image" />
<meta content="${title}" name="twitter:title" /> <meta content="${title}" name="twitter:title" />
<meta <meta
content="initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover, width=device-width" content="initial-scale=1, interactive-widget=resizes-content, maximum-scale=1, user-scalable=no, viewport-fit=cover, width=device-width"
name="viewport" name="viewport"
/> />
<meta content="#FFFFFF" name="theme-color" /> <meta content="#FFFFFF" name="theme-color" />

4
apps/client/src/styles.scss

@ -386,6 +386,10 @@ ngx-skeleton-loader {
} }
.mat-mdc-dialog-container { .mat-mdc-dialog-container {
.mat-mdc-dialog-surface {
padding-bottom: env(safe-area-inset-bottom);
}
.mdc-dialog__content { .mdc-dialog__content {
--mat-dialog-supporting-text-color: rgba(var(--dark-primary-text)); --mat-dialog-supporting-text-color: rgba(var(--dark-primary-text));
} }

2
libs/ui/src/lib/benchmark/benchmark.component.ts

@ -179,7 +179,7 @@ export class GfBenchmarkComponent implements OnInit {
deviceType: this.deviceType(), deviceType: this.deviceType(),
locale: this.locale() locale: this.locale()
}, },
height: this.deviceType() === 'mobile' ? '98vh' : undefined, height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

2
libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts

@ -236,7 +236,7 @@ export class GfHistoricalMarketDataEditorComponent
dateString: `${yearMonth}-${day}`, dateString: `${yearMonth}-${day}`,
symbol: this.symbol symbol: this.symbol
}, },
height: this.deviceType() === 'mobile' ? '98vh' : '80vh', height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
}); });

Loading…
Cancel
Save