File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,16 @@ export default defineContentScript({
55 if ( window . location . hostname !== "github.com" ) {
66 return ;
77 }
8-
8+
99 const ghCommentBox = document . getElementById ( "new_comment_field" ) as
1010 | HTMLTextAreaElement
1111 | undefined ;
1212 if ( ghCommentBox ) {
1313 const overtypeContainer = modifyGithubDOM ( ghCommentBox ) ;
1414 new OverType ( overtypeContainer , {
1515 placeholder : "Add your comment here..." ,
16+ autoResize : true ,
17+ minHeight : "102px" ,
1618 } ) ;
1719 }
1820 } ,
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ interface OverTypeOptions {
77 placeholder ?: string ;
88 value ?: string ;
99 autoResize ?: boolean ;
10- minHeight ?: number ;
11- maxHeight ?: number ;
10+ minHeight ?: string ;
11+ maxHeight ?: string ;
1212 toolbar ?: boolean ;
1313 onChange ?: ( value : string ) => void ;
1414 onKeydown ?: ( event : KeyboardEvent ) => void ;
You can’t perform that action at this time.
0 commit comments