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

[JENKINS-75090] Fix horizontal radio button overlap with later element #159

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Jan 6, 2025

[JENKINS-75090] Fix horizontal radio button overlap with later element

JENKINS-75090 notes that Jenkins 2.479.x shows a different layout of the horizontal radio buttons that are created by this plugin. Horizontal radio buttons are not in the Jenkins design library. The horizontal radio buttons should be replaced in this plugin with standard components from the Jenkins design library. However, that is a larger effort and will need more time. This small change fixes the visual issue without replacing the entire configuration page.

Insert extra space between the overlapping elements to prevent overlap. Not an elegant fix, but no worse than the current implementation and much faster than replacing the entire configuration page with a new implementation.

Testing done

  • Confirmed user interface does not overlap in 2.479.2 and 2.462.3
  • Confirmed that the additional space is not too ugly on 2.462.3

Screenshots

Jenkins 2.462.3 with the change:

2-462-3-with-added-break

Jenkins 2.479.2 with the change:

2-479-2-with-added-break

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

https://issues.jenkins.io/browse/JENKINS-75090 notes that Jenkins 2.479.x
shows a different layout of the horizontal radio buttons that are created
by this plugin.  Horizontal radio buttons are not in the Jenkins design
library.  The horizontal radio buttons should be replaced in this plugin
with standard components from the Jenkins design library.  However,
that is a larger effort and will need more time.  This small change
fixes the visual issue without replacing the entire configuration page.

Insert extra space between the overlapping elements to prevent overlap.
Not an elegant fix, but no worse than the current implementation and
much faster than replacing the entire configuration page with a new
implementation.

Testing done:

* Confirmed user interface does not overlap in 2.479.2 and 2.462.3
* Confirmed that the additional space is not too ugly on 2.462.3
@MarkEWaite MarkEWaite added the bug Bug fix label Jan 6, 2025
Copy link
Contributor

@gounthar gounthar left a comment

Choose a reason for hiding this comment

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

Thanks a lot, Mark, that should do the trick. 👍

@MarkEWaite MarkEWaite merged commit 2f33afb into jenkinsci:master Jan 6, 2025
17 checks passed
@MarkEWaite MarkEWaite deleted the avoid-horizontal-radio-button-overlap branch January 6, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants