mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 14:25:00 +01:00
parent
43c9a84ae5
commit
f4c1f43644
1 changed files with 2 additions and 1 deletions
|
@ -65,8 +65,9 @@ export function initImageDiff() {
|
|||
};
|
||||
}
|
||||
|
||||
$('.image-diff').each(function() {
|
||||
$('.image-diff:not([data-image-diff-loaded])').each(function() {
|
||||
const $container = $(this);
|
||||
$container.attr('data-image-diff-loaded', 'true');
|
||||
|
||||
// the container may be hidden by "viewed" checkbox, so use the parent's width for reference
|
||||
const diffContainerWidth = Math.max($container.closest('.diff-file-box').width() - 300, 100);
|
||||
|
|
Loading…
Reference in a new issue