From 7ffc5b63564b1c7e68b10d10426e6f3c9a85c1e4 Mon Sep 17 00:00:00 2001 From: Gayan Sandamal Date: Mon, 12 Aug 2024 12:50:31 +0530 Subject: [PATCH 1/2] fixed font-size supporting issue --- ui/src/widgets/ui-text/UIText.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/widgets/ui-text/UIText.vue b/ui/src/widgets/ui-text/UIText.vue index cdabe1632..0ca72e591 100644 --- a/ui/src/widgets/ui-text/UIText.vue +++ b/ui/src/widgets/ui-text/UIText.vue @@ -35,7 +35,7 @@ export default { style () { return { 'font-family': this.getProperty('font'), - 'font-size': this.getProperty('fontSize'), + 'font-size': `${this.getProperty('fontSize')}px`, color: this.getProperty('color') } } From b217e9e4722ae51c09e646c9cecdf40b6ad5a516 Mon Sep 17 00:00:00 2001 From: Gayan Sandamal Date: Mon, 12 Aug 2024 13:37:22 +0530 Subject: [PATCH 2/2] [fix]: Removed pixel unit from the test flow --- cypress/fixtures/flows/dashboard-text.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/fixtures/flows/dashboard-text.json b/cypress/fixtures/flows/dashboard-text.json index cd5de45f2..078a904a5 100644 --- a/cypress/fixtures/flows/dashboard-text.json +++ b/cypress/fixtures/flows/dashboard-text.json @@ -295,7 +295,7 @@ "t": "set", "p": "ui_update.fontSize", "pt": "msg", - "to": "28px", + "to": "28", "tot": "str" } ],