bug fixes, and performance improvements, and drawer

This commit is contained in:
Zoe
2026-09-27 18:44:51 -05:00
parent d48d8163a7
commit 2b9f8d64d7
52 changed files with 4913 additions and 778 deletions
+11
View File
@@ -0,0 +1,11 @@
export const getComposerHeight = (
scrollHeight: number,
lineHeight: number,
padding: number,
borders: number,
borderBox: boolean,
): number => {
const contentHeight = Math.min(Math.max(scrollHeight - padding, lineHeight * 2), lineHeight * 10);
// A stable CSS-pixel boundary avoids 47.999… / 48.01 oscillations.
return Math.round(contentHeight + (borderBox ? padding + borders : 0));
};