From 5a2e862fb6704a06280dffa7d3dfb27f124c4b4c Mon Sep 17 00:00:00 2001 From: Ornel Kevin Piam Talom <> Date: Fri, 11 Jun 2021 22:27:43 +0200 Subject: [PATCH] =?UTF-8?q?Capitalized=20bei=20Schriftarten=20hinzuf=C3=BC?= =?UTF-8?q?gen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/shared/tag-cloud/tag-cloud.component.ts | 4 +++- src/app/components/shared/tag-cloud/tag-cloud.interface.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/components/shared/tag-cloud/tag-cloud.component.ts b/src/app/components/shared/tag-cloud/tag-cloud.component.ts index 451e5bb90..b5d8423c7 100644 --- a/src/app/components/shared/tag-cloud/tag-cloud.component.ts +++ b/src/app/components/shared/tag-cloud/tag-cloud.component.ts @@ -439,9 +439,11 @@ export class TagCloudComponent implements OnInit, AfterViewInit, OnDestroy { } let textTransform = ''; if (this._currentSettings.textTransform === CloudTextStyle.capitalized) { - textTransform = 'text-transform: uppercase;'; + textTransform = 'text-transform: capitalize;'; } else if (this._currentSettings.textTransform === CloudTextStyle.lowercase) { textTransform = 'text-transform: lowercase;'; + }else if (this._currentSettings.textTransform === CloudTextStyle.uppercase) { + textTransform = 'text-transform: uppercase;'; } const fontRange = (this._currentSettings.fontSizeMax - this._currentSettings.fontSizeMin) / 10; for (let i = 1; i <= 10; i++) { diff --git a/src/app/components/shared/tag-cloud/tag-cloud.interface.ts b/src/app/components/shared/tag-cloud/tag-cloud.interface.ts index ca84784dd..f844d24b8 100644 --- a/src/app/components/shared/tag-cloud/tag-cloud.interface.ts +++ b/src/app/components/shared/tag-cloud/tag-cloud.interface.ts @@ -33,7 +33,8 @@ export type CloudWeightSettings = [ export enum CloudTextStyle { normal, lowercase, - capitalized + capitalized, + uppercase } export interface CloudParameters { -- GitLab