Browse Source

Bugfix/prevent FAB from overlapping paginators on mobile (#7000)

* Prevent FAB from overlapping paginators on mobile

* Update changelog
pull/7001/head
Thomas Kaul 2 days ago
committed by GitHub
parent
commit
2faa4c7c89
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      apps/client/src/app/pages/portfolio/activities/activities-page.html
  3. 18
      libs/ui/src/lib/fab/fab.component.scss

1
CHANGELOG.md

@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Prevented the floating action button from overlapping the paginator on mobile
- Fixed an issue where the asset profile override (asset class and asset sub class) was not applied to the data enhancers when gathering asset profiles - Fixed an issue where the asset profile override (asset class and asset sub class) was not applied to the data enhancers when gathering asset profiles
- Fixed a layout issue in the asset profile dialog of the admin control panel by truncating long titles - Fixed a layout issue in the asset profile dialog of the admin control panel by truncating long titles

2
apps/client/src/app/pages/portfolio/activities/activities-page.html

@ -1,5 +1,5 @@
<div class="container"> <div class="container">
<div class="mb-3 row"> <div class="row">
<div class="col"> <div class="col">
<h1 class="d-none d-sm-block h3 mb-3 text-center" i18n>Activities</h1> <h1 class="d-none d-sm-block h3 mb-3 text-center" i18n>Activities</h1>
<gf-activities-table <gf-activities-table

18
libs/ui/src/lib/fab/fab.component.scss

@ -1,14 +1,32 @@
:host { :host {
display: block;
// Reserve space so a floating action button does not overlap trailing content
height: calc(constant(safe-area-inset-bottom) + 7rem);
height: calc(env(safe-area-inset-bottom) + 7rem);
@media (min-width: 576px) {
height: calc(constant(safe-area-inset-bottom) + 5rem);
height: calc(env(safe-area-inset-bottom) + 5rem);
}
.mat-mdc-fab {
bottom: calc(constant(safe-area-inset-bottom) + 2rem); bottom: calc(constant(safe-area-inset-bottom) + 2rem);
bottom: calc(env(safe-area-inset-bottom) + 2rem); bottom: calc(env(safe-area-inset-bottom) + 2rem);
position: fixed; position: fixed;
right: 2rem; right: 2rem;
z-index: 999; z-index: 999;
}
} }
:host-context(gf-page-tabs) { :host-context(gf-page-tabs) {
@media (max-width: 575.98px) { @media (max-width: 575.98px) {
height: calc(constant(safe-area-inset-bottom) + 6rem);
height: calc(env(safe-area-inset-bottom) + 6rem);
.mat-mdc-fab {
bottom: calc(constant(safe-area-inset-bottom) + 5rem); bottom: calc(constant(safe-area-inset-bottom) + 5rem);
bottom: calc(env(safe-area-inset-bottom) + 5rem); bottom: calc(env(safe-area-inset-bottom) + 5rem);
} }
}
} }

Loading…
Cancel
Save