-
-
Notifications
You must be signed in to change notification settings - Fork 131
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 dhcp display in padd tiny #447
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR. Please base on and target development
brach.
You reverted the new additions by removing ${dhcp_check_box}" "Rng" "${dhcp_range}
. Maybe you can keep them and play a bit with the paddings to fit everything in one line?
@yubiuser In case you're curious why I didn't just add the variables back, there is a display issue where the opening checkbox bracket gets the color from the If there's a better way to handle that, let me know. |
I think the only issue is the excessive padding near the end of the line: Why do we need it there? |
Hey, sorry for the confusion. In my original commit I had a typo where It seems like my latest fix has things rendering like you see in this screenshot, which is probably closer to correct than what we had been seeing with the Edit: Although, I'm now seeing |
I think the big padding was needed because the range can be something like |
The issue is:
The maximum padding should be 32 to avoid the blank line. Your range example will overflow anyway: Note: the range you posted as example is invalid. 345... really?!? (I just noticed after posting the images) 😅 😂 You can remove the spaces around the hyphen in the range string... or you can simply remove the "Rng" string and add the IPs right after the box: |
Ok, here's where things stand:
Edit: If someone could test with DHCP enabled, that would be good; I'm wondering why we don't see the Edit 2: I see our errant empty line is back, fixing now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you squash them all down please. Then this can be merged.
0b90296
to
2bd3791
Compare
updates from review more updates from review fix dhcp string to checkbox fix dhcp ip range display fix dhcp ip range display again enhance dhcp range display Update padd.sh Co-authored-by: RD WebDesign <[email protected]> Signed-off-by: Christian Boyle <[email protected]> add newline at end of file, per editorconfig-checker failure Update padd.sh Co-authored-by: yubiuser <[email protected]> Signed-off-by: Christian Boyle <[email protected]>
2bd3791
to
95ffbd5
Compare
Code has been simplified a lot - requested change not necessary anymore
What does this PR aim to accomplish?:
This PR fixes a regression to PADDtiny introduced in
v4.0.0
.The addition of the DHCP status display caused line wrapping, which caused a blank line to appear, which cut off the header information display.
How does this PR accomplish the above?:
By submitting this pull request, I confirm the following:
git rebase
)