From cae8c63517d310b0f58820b4713a24e245b73aff Mon Sep 17 00:00:00 2001 From: zeripath Date: Thu, 21 Oct 2021 20:38:29 +0100 Subject: [PATCH] Fix SVG side by side comparison link (#17375) (#17391) Backport #17375 Define unique names for image tabs in pull requests, in order to toggle tabs correctly when multiple are displayed on one page. Fixes position of swipe-bar so it does not overlay other UI components when scrolling. Signed-off-by: Mario Lubenka Co-authored-by: Mario Lubenka --- templates/repo/diff/image_diff.tmpl | 12 ++++++------ web_src/less/features/imagediff.less | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/templates/repo/diff/image_diff.tmpl b/templates/repo/diff/image_diff.tmpl index 33fa8c9e2..3d100ac99 100644 --- a/templates/repo/diff/image_diff.tmpl +++ b/templates/repo/diff/image_diff.tmpl @@ -6,15 +6,15 @@
-
+
{{if .blobBase }} @@ -49,7 +49,7 @@
{{if and .blobBase .blobHead}} -
+
@@ -63,7 +63,7 @@
-
+
diff --git a/web_src/less/features/imagediff.less b/web_src/less/features/imagediff.less index f38ea98d7..55a67c6ec 100644 --- a/web_src/less/features/imagediff.less +++ b/web_src/less/features/imagediff.less @@ -54,7 +54,6 @@ } .swipe-bar { - z-index: 100; position: absolute; height: 100%; top: 0;