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

Subflow: Add labels to OUTPUT nodes #3352

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Subflow: Add labels to OUTPUT nodes #3352

merged 2 commits into from
Jan 25, 2022

Conversation

ralphwetzel
Copy link
Contributor

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

Subflow: Add labels to OUTPUT nodes

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run grunt to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 13, 2022

CLA Signed

The committers are authorized under a signed CLA.

@knolleary knolleary added this to the 2.2.0 milestone Jan 18, 2022
@knolleary
Copy link
Member

Looks good. If I'm going to be very picky, in your screenshot, the left-hand text on Output 3 and 4 is not vertically aligned in the same way as Output 1 and 2 are.

image

@coveralls
Copy link

Coverage Status

Coverage remained the same at 67.27% when pulling eb1b8b5 on ralphwetzel:dev into 81a4fe5 on node-red:dev.

@knolleary
Copy link
Member

I'm going to merge this with some tweaks applied to resolve the vertical alignment.

Thanks for the contribution!

@knolleary knolleary merged commit ab2ced5 into node-red:dev Jan 25, 2022
@ralphwetzel
Copy link
Contributor Author

ralphwetzel commented Jan 25, 2022

Hi Nick!
You're right. That was a deliberated design decision.
For single line labels (or the case without label), I sticked to the layout of the given Output node.
As soon as there's enough vertical space (beginning w/ a two line name), I centered the number and the port - which looked better to me.

image

3 & 5 show my approach - 1, 2 & 4 are based on the original layout.

Feel free to adapt this as appropriate.
R.

@knolleary
Copy link
Member

Thanks for the comment. On balance, it looked odd to me for the alignment to not match. I've merged #3370 that keeps them all aligned. We can of course iterate in the future. 👍🏻

@ralphwetzel ralphwetzel deleted the dev branch January 25, 2022 17:20
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.

3 participants