Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/missing list numbers of top and bottom holdings in Safari (#8090)

Thomas Kaul50363532505a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8569d69a13..8d87e1535b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
+- Fixed the missing list numbers in the top and bottom holdings on the analysis page in Safari
- Fixed the missing first data point in the portfolio evolution chart on the analysis page
- Fixed the missing mapping for Korea in the country weightings of the _Financial Modeling Prep_ service
diff --git a/apps/client/src/app/pages/portfolio/analysis/analysis-page.html b/apps/client/src/app/pages/portfolio/analysis/analysis-page.html
index 96dfe24c45..c39b774f4b 100644
--- a/apps/client/src/app/pages/portfolio/analysis/analysis-page.html
+++ b/apps/client/src/app/pages/portfolio/analysis/analysis-page.html
@@ -330,7 +330,7 @@
>
</mat-card-header>
<mat-card-content>
- <ol class="mb-0 ml-1 pl-3">
+ <ol class="holdings mb-0 ml-1 pl-3">
@for (holding of top3; track holding) {
<li class="py-1">
<a
@@ -342,8 +342,10 @@
}"
[routerLink]="[]"
>
- <div class="flex-grow-1 mr-2 text-truncate">
- {{ holding.assetProfile.name }}
+ <div class="flex-grow-1 mr-2 name">
+ <span class="align-top d-inline-block mw-100 text-truncate">
+ {{ holding.assetProfile.name }}
+ </span>
</div>
<div class="d-flex justify-content-end">
<gf-value
@@ -381,7 +383,7 @@
>
</mat-card-header>
<mat-card-content>
- <ol class="mb-0 ml-1 pl-3">
+ <ol class="holdings mb-0 ml-1 pl-3">
@for (holding of bottom3; track holding) {
<li class="py-1">
<a
@@ -393,8 +395,10 @@
}"
[routerLink]="[]"
>
- <div class="flex-grow-1 mr-2 text-truncate">
- {{ holding.assetProfile.name }}
+ <div class="flex-grow-1 mr-2 name">
+ <span class="align-top d-inline-block mw-100 text-truncate">
+ {{ holding.assetProfile.name }}
+ </span>
</div>
<div class="d-flex justify-content-end">
<gf-value
diff --git a/apps/client/src/app/pages/portfolio/analysis/analysis-page.scss b/apps/client/src/app/pages/portfolio/analysis/analysis-page.scss
index c6fb687e3a..12d5db3503 100644
--- a/apps/client/src/app/pages/portfolio/analysis/analysis-page.scss
+++ b/apps/client/src/app/pages/portfolio/analysis/analysis-page.scss
@@ -4,4 +4,12 @@
.chart-container {
aspect-ratio: 16 / 9;
}
+
+ .holdings {
+ .name {
+ // Safari puts the list marker into this element, so the truncation is
+ // on the inner element (a hidden overflow here hides the marker)
+ min-width: 0;
+ }
+ }
}