Skip to content

Commit c206fb7

Browse files
authored
Merge branch 'main' into prevent-npe-when-migrating-if-reviewer-nil
2 parents c953edd + 8fee7c4 commit c206fb7

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

templates/user/settings/applications.tmpl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@
5555
</div>
5656

5757
<div class="ui small basic delete modal" id="delete-token">
58-
{{/*
59-
The wording here is a bit confusing.
60-
The action asks for deleting an access token.
61-
Confirming is therefore the destructive option and
62-
should be deemphasized because it cannot be undone.
63-
*/}}
6458
<div class="ui icon header">
6559
{{svg "octicon-trash"}}
6660
{{.i18n.Tr "settings.access_token_deletion"}}

web_src/js/features/imagediff.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export default function initImageDiff() {
6767
$('.image-diff').each(function() {
6868
const $container = $(this);
6969

70-
const diffContainerWidth = $container.width() - 300;
70+
// 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);
7172
const pathAfter = $container.data('path-after');
7273
const pathBefore = $container.data('path-before');
7374

0 commit comments

Comments
 (0)