File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 55
55
</div>
56
56
57
57
<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
- */}}
64
58
<div class="ui icon header">
65
59
{{svg "octicon-trash"}}
66
60
{{.i18n.Tr "settings.access_token_deletion"}}
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ export default function initImageDiff() {
67
67
$ ( '.image-diff' ) . each ( function ( ) {
68
68
const $container = $ ( this ) ;
69
69
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 ) ;
71
72
const pathAfter = $container . data ( 'path-after' ) ;
72
73
const pathBefore = $container . data ( 'path-before' ) ;
73
74
You can’t perform that action at this time.
0 commit comments