Skip to content

Commit 753f9d2

Browse files
committed
Set minHeight and autoResize to match GitHub.
1 parent e17fc2b commit 753f9d2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

browser-extension/src/entrypoints/content.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
},

browser-extension/src/overtype/overtype.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)