redmica / redmica_ui_extension

This plugin adds useful UI improvements to RedMica.
GNU General Public License v2.0
42 stars 12 forks source link

Fix mermaid macro SVG size issue #58

Closed ishikawa999 closed 1 month ago

ishikawa999 commented 2 months ago

This pull request fixes the issue where the mermaid macro's SVG does not display when using this plugin with the latest version of Redmine. The root cause of the issue is that the SVG's width and height are set to 0, as defined in this Redmine stylesheet. This pull request resolves the issue by overriding the mermaid SVG's width and height to initial, ensuring that the SVG will render with correct size.

To prevent this issue from occurring again in the future, I have also added a test that verifies the SVG is displayed correctly, and that its width and height are not set to 0.

ishikawa999 commented 1 month ago

Thanks. Merged