Browse Source

Limit safe area padding to mobile dialogs

pull/8373/head
Thomas Kaul 4 weeks ago
parent
commit
fc96d0cdbd
  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. 2
      apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
  9. 1
      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. 1
      apps/client/src/app/pages/register/register-page.component.ts
  12. 2
      apps/client/src/app/services/user/user.service.ts
  13. 10
      apps/client/src/styles.scss
  14. 2
      libs/ui/src/lib/benchmark/benchmark.component.ts
  15. 2
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts

2
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'
});

2
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'
});

4
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'
});

4
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'
});

2
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'
});

2
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'
});

4
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'
});

2
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'
});

1
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'
});

2
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'
});

1
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'
});

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

@ -168,6 +168,8 @@ export class UserService extends ObservableStore<UserStoreState> {
},
disableClose: true,
height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

10
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));
}

2
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'
});

2
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'
});

Loading…
Cancel
Save