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

Hard-code size of icons (#148) #158

Merged
merged 1 commit into from
Jun 1, 2024
Merged

Hard-code size of icons (#148) #158

merged 1 commit into from
Jun 1, 2024

Conversation

strangelookingnerd
Copy link
Contributor

@strangelookingnerd strangelookingnerd commented May 29, 2024

Fixes #148 by hard-coding the icon style to include width: 16px; height: 16px;

I also removed the no longer existing references to the badge-shortText css classes (removed in #153) and therefore the usage of badgeClass alltogether.
Further I changed the "default" css style for text badges to not be "border: solid" anymore - I am pretty sure this was not intended.

Testing done

Manually verified badges look as expected.

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

@strangelookingnerd strangelookingnerd requested a review from a team as a code owner May 29, 2024 11:33
@mPokornyETM
Copy link
Contributor

may you pls paste before / after screenshots here. Just for easy verifying. Thx

@strangelookingnerd strangelookingnerd added the bug Something isn't working label May 29, 2024
@MarkEWaite
Copy link
Contributor

The border was solid in the 1.9.1 release so it was set to solid in order to retain compatibility with past behavior. I believe the border can be set to 0 for those users that do not want a border around their short text messages. I prefer that the border be left as is rather than switching the default to no longer have a border.

@strangelookingnerd
Copy link
Contributor Author

strangelookingnerd commented May 31, 2024

The border was solid in the 1.9.1 release so it was set to solid in order to retain compatibility with past behavior. I believe the border can be set to 0 for those users that do not want a border around their short text messages. I prefer that the border be left as is rather than switching the default to no longer have a border.

Using addShortText(text: "Test") I get

1.9.1:
image

1.10:
image

1.11 (broken):
image

1.12:
image

Not sure what is to be considered "compatibility" here if I'm honest.

@strangelookingnerd
Copy link
Contributor Author

@MarkEWaite I reverted the change and kept the border by default. Still feel it does not look good but for the sake of compatibility I must agree with you.

@MarkEWaite
Copy link
Contributor

@MarkEWaite I reverted the change and kept the border by default. Still feel it does not look good but for the sake of compatibility I must agree with you.

I agree that the look in 1.10 was much more attractive than the look in the other releases, but I'd rather restore compatibility first and then improve the appearance.

Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@strangelookingnerd strangelookingnerd merged commit c936ee2 into master Jun 1, 2024
19 checks passed
@strangelookingnerd strangelookingnerd deleted the bugfix/148 branch June 1, 2024 14:01
@jimklimov
Copy link
Contributor

Well, with 1.9.1 and the discussion at https://issues.jenkins.io/browse/JENKINS-73167 my borders were also rounded and thin, as far as I can remember.

Although upon later investigation, we had not only Badge but also Groovy PostBuild plugin (which builds upon it) so maybe the additional style came from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Width and height are not set for large icons (addBadge)
4 participants