File tree 2 files changed +28
-13
lines changed 2 files changed +28
-13
lines changed Original file line number Diff line number Diff line change @@ -1202,6 +1202,18 @@ function initPullRequestReview() {
1202
1202
$ ( this ) . hide ( ) ;
1203
1203
const form = $ ( this ) . parent ( ) . find ( '.comment-form' ) ;
1204
1204
form . removeClass ( 'hide' ) ;
1205
+ const $textarea = form . find ( 'textarea' ) ;
1206
+ let $simplemde ;
1207
+ if ( $textarea . data ( 'simplemde' ) ) {
1208
+ $simplemde = $textarea . data ( 'simplemde' ) ;
1209
+ } else {
1210
+ issuesTribute . attach ( $textarea . get ( ) ) ;
1211
+ emojiTribute . attach ( $textarea . get ( ) ) ;
1212
+ $simplemde = setCommentSimpleMDE ( $textarea ) ;
1213
+ $textarea . data ( 'simplemde' , $simplemde ) ;
1214
+ }
1215
+ $textarea . focus ( ) ;
1216
+ $simplemde . codemirror . focus ( ) ;
1205
1217
assingMenuAttributes ( form . find ( '.menu' ) ) ;
1206
1218
} ) ;
1207
1219
// The following part is only for diff views
@@ -1261,7 +1273,13 @@ function initPullRequestReview() {
1261
1273
td . find ( "input[name='side']" ) . val ( side === 'left' ? 'previous' : 'proposed' ) ;
1262
1274
td . find ( "input[name='path']" ) . val ( path ) ;
1263
1275
}
1264
- commentCloud . find ( 'textarea' ) . focus ( ) ;
1276
+ const $textarea = commentCloud . find ( 'textarea' ) ;
1277
+ issuesTribute . attach ( $textarea . get ( ) ) ;
1278
+ emojiTribute . attach ( $textarea . get ( ) ) ;
1279
+
1280
+ const $simplemde = setCommentSimpleMDE ( $textarea ) ;
1281
+ $textarea . focus ( ) ;
1282
+ $simplemde . codemirror . focus ( ) ;
1265
1283
} ) ;
1266
1284
}
1267
1285
Original file line number Diff line number Diff line change 54
54
border : 0 ;
55
55
padding : 0 ;
56
56
margin : 0 ;
57
-
58
- & .markdown {
59
- padding : 1em ;
60
- min-height : 168px ;
61
- }
62
57
}
63
58
64
59
& .header {
65
60
padding : .1rem 1rem ;
61
+
62
+ .text {
63
+ margin : 0 ;
64
+ }
66
65
}
67
66
}
68
67
76
75
}
77
76
78
77
.ui.active.tab {
79
- border : 1px solid #d4d4d5 ;
80
78
padding : .5em ;
81
- border-radius : 0 .28571429rem .28571429rem .28571429rem ;
82
- }
83
79
84
- .ui.active.markdown.tab {
85
- border-top-left-radius : .28571429rem ;
80
+ & .markdown {
81
+ padding : 1em ;
82
+ min-height : 168px ;
83
+ }
86
84
}
87
85
88
86
.ui.tabular.menu {
89
- margin-bottom : 0 ;
90
- border-bottom : 0 ;
87
+ margin : .5em ;
91
88
}
92
89
93
90
.comment-list {
You can’t perform that action at this time.
0 commit comments