Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript šŸ¤

Bugfix/improve table headers’ alignment of activities table (#5580)

GermƔn Martƭn01aeefd2df0c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8b5a688d6..396d83ebde 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the usability of the create asset profile dialog in the market data section of the admin control panel
- Improved the language localization for German (`de`)
+### Fixed
+
+- Improved the table headers’ alignment of the activities table
+
## 2.203.0 - 2025-09-27
### Added
diff --git a/apps/client/src/styles/table.scss b/apps/client/src/styles/table.scss
index f232cb1af8..88258d48b2 100644
--- a/apps/client/src/styles/table.scss
+++ b/apps/client/src/styles/table.scss
@@ -1,6 +1,12 @@
@mixin gf-table($darkTheme: false) {
--mat-table-background-color: var(--light-background);
+ th {
+ .mat-sort-header-container {
+ justify-content: inherit;
+ }
+ }
+
.mat-footer-row,
.mat-row {
.mat-cell,
diff --git a/libs/ui/src/lib/accounts-table/accounts-table.component.scss b/libs/ui/src/lib/accounts-table/accounts-table.component.scss
index 990b8b294a..5d4e87f30f 100644
--- a/libs/ui/src/lib/accounts-table/accounts-table.component.scss
+++ b/libs/ui/src/lib/accounts-table/accounts-table.component.scss
@@ -1,13 +1,3 @@
:host {
display: block;
-
- .gf-table {
- th {
- ::ng-deep {
- .mat-sort-header-container {
- justify-content: inherit;
- }
- }
- }
- }
}
diff --git a/libs/ui/src/lib/activities-table/activities-table.component.html b/libs/ui/src/lib/activities-table/activities-table.component.html
index 85db627d27..5230205856 100644
--- a/libs/ui/src/lib/activities-table/activities-table.component.html
+++ b/libs/ui/src/lib/activities-table/activities-table.component.html
@@ -255,7 +255,7 @@
<ng-container matColumnDef="value">
<th
*matHeaderCellDef
- class="d-none d-lg-table-cell justify-content-end px-1"
+ class="d-none d-lg-table-cell px-1 text-right"
mat-header-cell
>
<ng-container i18n>Value</ng-container>
@@ -291,7 +291,7 @@
<ng-container matColumnDef="valueInBaseCurrency">
<th
*matHeaderCellDef
- class="d-lg-none d-xl-none justify-content-end px-1"
+ class="d-lg-none d-xl-none px-1 text-right"
mat-header-cell
>
<ng-container i18n>Value</ng-container>
diff --git a/libs/ui/src/lib/benchmark/benchmark.component.scss b/libs/ui/src/lib/benchmark/benchmark.component.scss
index 990b8b294a..5d4e87f30f 100644
--- a/libs/ui/src/lib/benchmark/benchmark.component.scss
+++ b/libs/ui/src/lib/benchmark/benchmark.component.scss
@@ -1,13 +1,3 @@
:host {
display: block;
-
- .gf-table {
- th {
- ::ng-deep {
- .mat-sort-header-container {
- justify-content: inherit;
- }
- }
- }
- }
}
diff --git a/libs/ui/src/lib/holdings-table/holdings-table.component.scss b/libs/ui/src/lib/holdings-table/holdings-table.component.scss
index 990b8b294a..5d4e87f30f 100644
--- a/libs/ui/src/lib/holdings-table/holdings-table.component.scss
+++ b/libs/ui/src/lib/holdings-table/holdings-table.component.scss
@@ -1,13 +1,3 @@
:host {
display: block;
-
- .gf-table {
- th {
- ::ng-deep {
- .mat-sort-header-container {
- justify-content: inherit;
- }
- }
- }
- }
}