From 747dbf963b12ad305b99256e3933eb27badb9e40 Mon Sep 17 00:00:00 2001 From: Viktor Suprun Date: Thu, 26 Feb 2026 01:54:02 +1100 Subject: [PATCH] Fix SVG height calculation in diff viewer (#36748) Fixes #36742 --- 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 796a1e784520e..41d2d50721633 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 {