Skip to content

Conversation

@silverwind
Copy link
Member

@silverwind silverwind commented Dec 11, 2025

Fixes: #35863

The old code had a conflict between using HTML attributes vs. style properties where the style was overriding the previously set HTML attributes:

<img width="300" height="277.02439470988946" style="width: 275px; height: 0px;">

I made it so in all cases only style properties are used and the previous width/height values are now set via style. Also I did a number of much-needed typescript improvements to the file.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 11, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 12, 2025
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Dec 12, 2025

Made a small change for the transparent image in #35863

image

@wxiaoguang wxiaoguang added backport/done All backports for this PR have been created backport/manual No power to the bots! Create your backport yourself! backport/v1.25 labels Dec 12, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 12, 2025
@lafriks lafriks merged commit 4cbcb91 into go-gitea:main Dec 12, 2025
23 checks passed
@GiteaBot GiteaBot added this to the 1.26.0 milestone Dec 12, 2025
lafriks pushed a commit that referenced this pull request Dec 12, 2025
Backport of #36133, only the
bugfix part.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@wxiaoguang wxiaoguang deleted the svgsize branch December 12, 2025 07:40
@silverwind
Copy link
Member Author

Made a small change for the transparent image

BTW this mask image should be made darker in dark theme, I will probably follow up on that later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/done All backports for this PR have been created backport/manual No power to the bots! Create your backport yourself! backport/v1.25 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken render of some SVGs in diff page

5 participants