From 67561e79f15f23a00ad07df36de0ee54d69efc78 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) * Remove swipe-bar z-index Fixes position of swipe-bar so it does not overlay other UI components when scrolling. Signed-off-by: Mario Lubenka * Unique names for image tabs in pull request Define unique names for image tabs in pull requests, in order to toggle tabs correctly when multiple are displayed on one page. 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 33fa8c9e2c4..3d100ac9920 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 f38ea98d7de..55a67c6ec85 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;