Skip to content

Commit

Permalink
fix message area scrollbar showing sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Dec 10, 2024
1 parent 3d865b7 commit 99a7e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/message-pane/MessagePane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function MessageArea(props: {
const adjustHeight = () => {
const MAX_HEIGHT = 100;
textAreaEl()!.style.height = "0px";
let newHeight = textAreaEl()!.scrollHeight - 24;
let newHeight = textAreaEl()!.scrollHeight - 22;
if (newHeight > MAX_HEIGHT) newHeight = MAX_HEIGHT;
textAreaEl()!.style.height = newHeight + "px";
textAreaEl()!.scrollTop = textAreaEl()!.scrollHeight;
Expand Down

0 comments on commit 99a7e2a

Please sign in to comment.