File tree Expand file tree Collapse file tree 2 files changed +26
-13
lines changed Expand file tree Collapse file tree 2 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -1200,6 +1200,17 @@ function initPullRequestReview() {
1200
1200
$ ( this ) . hide ( ) ;
1201
1201
const form = $ ( this ) . parent ( ) . find ( '.comment-form' ) ;
1202
1202
form . removeClass ( 'hide' ) ;
1203
+ const $textarea = form . find ( 'textarea' ) ;
1204
+ let $simplemde ;
1205
+ if ( $textarea . data ( 'simplemde' ) ) {
1206
+ $simplemde = $textarea . data ( 'simplemde' ) ;
1207
+ } else {
1208
+ attachTribute ( $textarea . get ( ) , { mentions : true , emoji : true } ) ;
1209
+ $simplemde = setCommentSimpleMDE ( $textarea ) ;
1210
+ $textarea . data ( 'simplemde' , $simplemde ) ;
1211
+ }
1212
+ $textarea . focus ( ) ;
1213
+ $simplemde . codemirror . focus ( ) ;
1203
1214
assingMenuAttributes ( form . find ( '.menu' ) ) ;
1204
1215
} ) ;
1205
1216
// The following part is only for diff views
@@ -1259,7 +1270,12 @@ function initPullRequestReview() {
1259
1270
td . find ( "input[name='side']" ) . val ( side === 'left' ? 'previous' : 'proposed' ) ;
1260
1271
td . find ( "input[name='path']" ) . val ( path ) ;
1261
1272
}
1262
- commentCloud . find ( 'textarea' ) . focus ( ) ;
1273
+ const $textarea = commentCloud . find ( 'textarea' ) ;
1274
+ attachTribute ( $textarea . get ( ) , { mentions : true , emoji : true } ) ;
1275
+
1276
+ const $simplemde = setCommentSimpleMDE ( $textarea ) ;
1277
+ $textarea . focus ( ) ;
1278
+ $simplemde . codemirror . focus ( ) ;
1263
1279
} ) ;
1264
1280
}
1265
1281
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 ;
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