From 19e36e8a701907a0174f86a4cc336879e575e410 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 26 Feb 2026 00:46:35 +0800 Subject: [PATCH] Fix SVG height calculation in diff viewer (#36748) (#36750) Backport #36748 by POPSuL Fixes #36742 Co-authored-by: Viktor Suprun --- web_src/js/features/imagediff.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/imagediff.ts b/web_src/js/features/imagediff.ts index 796a1e7845..41d2d50721 100644 --- a/web_src/js/features/imagediff.ts +++ b/web_src/js/features/imagediff.ts @@ -27,7 +27,7 @@ function getDefaultSvgBoundsIfUndefined(text: string, src: string) { const viewBox = svg.viewBox.baseVal; return { width: defaultSize, - height: defaultSize * viewBox.width / viewBox.height, + height: defaultSize * viewBox.height / viewBox.width, }; } return {