Fix SVG height calculation in diff viewer (#36748)

Fixes #36742
This commit is contained in:
Viktor Suprun
2026-02-26 01:54:02 +11:00
committed by GitHub
parent 2176e84ab9
commit 577ed107dd
+1 -1
View File
@@ -53,7 +53,7 @@ function getDefaultSvgBoundsIfUndefined(text: string, src: string): Bounds | nul
const viewBox = svg.viewBox.baseVal; const viewBox = svg.viewBox.baseVal;
return { return {
width: defaultSize, width: defaultSize,
height: defaultSize * viewBox.width / viewBox.height, height: defaultSize * viewBox.height / viewBox.width,
}; };
} }
return { return {