Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/improve font weight in value component (#2747)
Thomas Kaul492bc5e17bd6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 07078424fd..c4383a8287 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,8 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Changed-- Upgraded to _Inter_ 4 font family+- Improved the font weight in the value component- Improved the language localization for Türkçe (`tr`)+- Upgraded to _Inter_ 4 font family### Fixeddiff --git a/libs/ui/src/lib/value/value.component.html b/libs/ui/src/lib/value/value.component.htmlindex 61e6ecd5ec..bcefeac85f 100644--- a/libs/ui/src/lib/value/value.component.html+++ b/libs/ui/src/lib/value/value.component.html@@ -16,14 +16,20 @@<div*ngIf="isPercent"class="mb-0 value"- [ngClass]="{ h2: size === 'large', h4: size === 'medium' }"+ [ngClass]="{+ 'font-weight-bold h2': size === 'large',+ h4: size === 'medium'+ }">{{ formattedValue }}%</div><div*ngIf="!isPercent"class="mb-0 value"- [ngClass]="{ h2: size === 'large', h4: size === 'medium' }"+ [ngClass]="{+ 'font-weight-bold h2': size === 'large',+ h4: size === 'medium'+ }"><ng-container *ngIf="value === null"><span class="text-monospace text-muted">***</span>@@ -42,7 +48,10 @@<ng-container *ngIf="isString"><divclass="mb-0 text-truncate value"- [ngClass]="{ h2: size === 'large', h4: size === 'medium' }"+ [ngClass]="{+ 'font-weight-bold h2': size === 'large',+ h4: size === 'medium'+ }">{{ formattedValue }}</div>diff --git a/libs/ui/src/lib/value/value.component.scss b/libs/ui/src/lib/value/value.component.scssindex f690dc46c0..087bf31e13 100644--- a/libs/ui/src/lib/value/value.component.scss+++ b/libs/ui/src/lib/value/value.component.scss@@ -4,6 +4,7 @@font-variant-numeric: tabular-nums;.h2 {+ font-variant-numeric: initial;line-height: 1;}}