From 5075be9fa822e6398327b92eb67892e0268d1d9a Mon Sep 17 00:00:00 2001 From: Mario Lubenka Date: Thu, 21 Oct 2021 12:43:26 +0200 Subject: [PATCH] Fix SVG side by side comparison link (#17375) 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: Lauris BH Co-authored-by: Lunny Xiao Co-authored-by: wxiaoguang --- 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 33fa8c9e2c40f..3d100ac9920ca 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 f38ea98d7de17..55a67c6ec85b0 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;