Fix SVG size calulation, only use style attribute (#36133) (#36134)

Backport of https://github.com/go-gitea/gitea/pull/36133, only the
bugfix part.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
silverwind
2025-12-12 08:40:27 +01:00
committed by GitHub
parent 3d66e75a47
commit 8d6442a43e
4 changed files with 15 additions and 14 deletions

View File

@@ -81,6 +81,7 @@
.view-raw img[src$=".svg" i] {
max-height: 600px !important;
max-width: 600px !important;
background: var(--background-view-image);
}
.file-view-render-container {