We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdb81f3 commit 8fee7c4Copy full SHA for 8fee7c4
web_src/js/features/imagediff.js
@@ -67,7 +67,8 @@ export default function initImageDiff() {
67
$('.image-diff').each(function() {
68
const $container = $(this);
69
70
- const diffContainerWidth = $container.width() - 300;
+ // the container may be hidden by "viewed" checkbox, so use the parent's width for reference
71
+ const diffContainerWidth = Math.max($container.closest('.diff-file-box').width() - 300, 100);
72
const pathAfter = $container.data('path-after');
73
const pathBefore = $container.data('path-before');
74
0 commit comments