Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]: Font-size supporting issue in ui-text node #1199

Merged

Conversation

gayanSandamal
Copy link
Contributor

@gayanSandamal gayanSandamal commented Aug 12, 2024

Description

As the per the reported issue says "styling no longer applying" 1193.

I noticed that the only issue was with the font size as it was just passed as a string without setting the unit as suffix.
At moment the Dashboard 2.0 uses only pixel unit for font sizes I concatenated px unit in this fix

Screenshot 2024-08-12 at 12 58 30

Related Issue(s)

#1193

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

@gayanSandamal gayanSandamal linked an issue Aug 12, 2024 that may be closed by this pull request
@gayanSandamal gayanSandamal self-assigned this Aug 12, 2024
@gayanSandamal gayanSandamal added the bug Something isn't working label Aug 12, 2024
@gayanSandamal gayanSandamal marked this pull request as draft August 12, 2024 07:46
@gayanSandamal gayanSandamal changed the title [fix]: Font-size supporting issue in ui-text node DRAFT: [fix]: Font-size supporting issue in ui-text node Aug 12, 2024
@joepavitt joepavitt removed the bug Something isn't working label Aug 12, 2024
@gayanSandamal gayanSandamal changed the title DRAFT: [fix]: Font-size supporting issue in ui-text node [fix]: Font-size supporting issue in ui-text node Aug 12, 2024
@gayanSandamal gayanSandamal marked this pull request as ready for review August 12, 2024 08:13
@@ -295,7 +295,7 @@
"t": "set",
"p": "ui_update.fontSize",
"pt": "msg",
"to": "28px",
"to": "28",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this from 28px to 28 as we don't define the unit when setting the font size via the node-red widget editor under "Text Size"

Screenshot 2024-08-12 at 13 45 07

@colinl
Copy link
Contributor

colinl commented Aug 13, 2024

I can confirm this fixes the issue for me.

@joepavitt joepavitt merged commit d1a18f2 into main Aug 13, 2024
1 of 2 checks passed
@joepavitt joepavitt deleted the 1193-regression-styling-no-longer-working-in-ui-text-node branch August 13, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Regression] Text Size no longer working in ui-text node.
3 participants