Skip to content

Conversation

@hidakatsuya
Copy link
Contributor

@hidakatsuya hidakatsuya commented Oct 28, 2025

Background / Purpose

This PR removes the following icon style added in #128, which turned out to be actually unnecessary:

/* PNG icon support for Redmine 5.1 and earlier */
.icon:not(:has(svg)) {
background-position: 0% 50%;
background-repeat: no-repeat;
padding-left: 20px;
}

Details

Up to Redmine 6.1, the same style has already been defined in Redmine core, so there is no need for this plugin to define the .icon style.
Keeping this style globally in the plugin might even cause unexpected UI issues in the future.

Checks

Confirmed that icons are displayed correctly from Redmine 5.1 through trunk (r24062).

5.1

Details

5 1-1 5 1-2

6.0

Details

6 0-1 6 0-2

trunk(r24062)

Details

trunk-1 trunk-2

These icon styles do not need to be defined in the plugin because
identical styles are already defined in Redmine itself, at least up to
version 6.1. Defining them globally in the plugin could even cause
unexpected UI issues. Removing these styles still allows icons (PNG or
SVG) to display correctly from Redmine 5.1 through trunk.
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.

1 participant