From 19eff6e814bcb2abb14a204e5abd44a2c41a0131 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Tue, 6 May 2025 18:05:30 +0200 Subject: [PATCH] Bugfix/fix horizontal overflow in table of benchmark component (#4668) * Fix horizontal overflow * Update changelog --- CHANGELOG.md | 1 + .../lib/benchmark/benchmark.component.html | 316 +++++++++--------- 2 files changed, 166 insertions(+), 151 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a21641459..9ebb975b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed an issue in the performance calculation on the date of an activity when the unit price differs from the market price +- Fixed the horizontal overflow in the table of the benchmark component ## 2.160.0 - 2025-05-04 diff --git a/libs/ui/src/lib/benchmark/benchmark.component.html b/libs/ui/src/lib/benchmark/benchmark.component.html index 14ff7f9f2..631e5b7e1 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.html +++ b/libs/ui/src/lib/benchmark/benchmark.component.html @@ -1,164 +1,178 @@ -
Name | -- {{ element?.name }} - | -
---|
Name | ++ {{ element?.name }} + | +
- |
-
-
- @if (element?.trend50d !== 'UNKNOWN') {
-
- |
-
+ |
+
+
+ @if (element?.trend50d !== 'UNKNOWN') {
+
+ |
+
- |
-
-
- @if (element?.trend200d !== 'UNKNOWN') {
-
- |
-
+ |
+
+
+ @if (element?.trend200d !== 'UNKNOWN') {
+
+ |
+
- |
-
-
- @if (element?.performances?.allTimeHigh?.date) {
+
+ |
+
+ |
+
+ @if (element?.performances?.allTimeHigh?.date) {
+
+
+ Change from All Time High
+ from ATH
+ |
+
+ @if (isNumber(element?.performances?.allTimeHigh?.performancePercent)) {
|
-
- Change from All Time High
- from ATH
- |
-
- @if (isNumber(element?.performances?.allTimeHigh?.performancePercent)) {
- |
- |
+ - |
- @if (element?.marketCondition) {
-
- {{ resolveMarketCondition(element.marketCondition).emoji }}
-
- }
- |
- + |
+ @if (element?.marketCondition) {
+
+ {{ resolveMarketCondition(element.marketCondition).emoji }}
+
+ }
+ |
+ - |
- @if (hasPermissionToDeleteItem) {
-
- }
- |
- + |
+ @if (hasPermissionToDeleteItem) {
+
+ }
+ |
+
---|