Browse Source

Task/reset background color of paginators (#6800)

* Reset background color of paginators

* Hide page size

* Update changelog

---------

Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
pull/6803/head^2
Matt Van Horn 2 days ago
committed by GitHub
parent
commit
040b7b91fc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 1
      apps/client/src/app/components/admin-market-data/admin-market-data.html
  3. 1
      apps/client/src/app/components/admin-users/admin-users.html
  4. 13
      apps/client/src/styles.scss
  5. 6
      apps/client/src/styles/theme.scss
  6. 1
      libs/ui/src/lib/activities-table/activities-table.component.html
  7. 2
      libs/ui/src/lib/holdings-table/holdings-table.component.html
  8. 2
      libs/ui/src/lib/top-holdings/top-holdings.component.html

1
CHANGELOG.md

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Modernized the layout of the overview tab in the admin control panel - Modernized the layout of the overview tab in the admin control panel
- Improved the styling of the paginator across various table components
### Fixed ### Fixed

1
apps/client/src/app/components/admin-market-data/admin-market-data.html

@ -309,6 +309,7 @@
</div> </div>
<mat-paginator <mat-paginator
[hidePageSize]="true"
[length]="totalItems" [length]="totalItems"
[ngClass]="{ [ngClass]="{
'd-none': (isLoading && totalItems === 0) || totalItems <= pageSize 'd-none': (isLoading && totalItems === 0) || totalItems <= pageSize

1
apps/client/src/app/components/admin-users/admin-users.html

@ -273,6 +273,7 @@
</div> </div>
<mat-paginator <mat-paginator
[hidePageSize]="true"
[length]="totalItems" [length]="totalItems"
[ngClass]="{ [ngClass]="{
'd-none': (isLoading && totalItems === 0) || totalItems <= pageSize 'd-none': (isLoading && totalItems === 0) || totalItems <= pageSize

13
apps/client/src/styles.scss

@ -258,10 +258,6 @@ body {
} }
} }
.mat-mdc-paginator {
background-color: rgba(var(--palette-foreground-base-dark), 0.02);
}
.mdc-button { .mdc-button {
&.mat-accent, &.mat-accent,
&.mat-primary { &.mat-primary {
@ -459,15 +455,6 @@ ngx-skeleton-loader {
} }
} }
.mat-mdc-paginator {
background-color: rgba(var(--palette-foreground-base-light), 0.02);
.mat-mdc-paginator-page-size,
.mat-mdc-paginator-page-size {
display: none;
}
}
.mat-stepper-vertical, .mat-stepper-vertical,
.mat-stepper-horizontal { .mat-stepper-horizontal {
background: transparent !important; background: transparent !important;

6
apps/client/src/styles/theme.scss

@ -359,6 +359,12 @@ $_tertiary: map.merge(map.get($_palettes, tertiary), $_rest);
) )
); );
@include mat.paginator-overrides(
(
container-background-color: transparent
)
);
@include mat.progress-bar-overrides( @include mat.progress-bar-overrides(
( (
active-indicator-color: var(--gf-theme-primary-500) active-indicator-color: var(--gf-theme-primary-500)

1
libs/ui/src/lib/activities-table/activities-table.component.html

@ -536,6 +536,7 @@
} }
<mat-paginator <mat-paginator
[hidePageSize]="true"
[length]="totalItems" [length]="totalItems"
[ngClass]="{ [ngClass]="{
'd-none': (isLoading() && !totalItems) || totalItems <= pageSize 'd-none': (isLoading() && !totalItems) || totalItems <= pageSize

2
libs/ui/src/lib/holdings-table/holdings-table.component.html

@ -193,7 +193,7 @@
</table> </table>
</div> </div>
<mat-paginator class="d-none" [pageSize]="pageSize()" /> <mat-paginator class="d-none" [hidePageSize]="true" [pageSize]="pageSize()" />
@if (isLoading()) { @if (isLoading()) {
<ngx-skeleton-loader <ngx-skeleton-loader

2
libs/ui/src/lib/top-holdings/top-holdings.component.html

@ -155,7 +155,7 @@
</table> </table>
</div> </div>
<mat-paginator class="d-none" [pageSize]="pageSize" /> <mat-paginator class="d-none" [hidePageSize]="true" [pageSize]="pageSize" />
@if (isLoading) { @if (isLoading) {
<ngx-skeleton-loader <ngx-skeleton-loader

Loading…
Cancel
Save