refactor: rename components and update import paths for consistency
This commit is contained in:
9
src/utils/textAreaHelp.tsx
Normal file
9
src/utils/textAreaHelp.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
export const autoHeight = (target: any) => {
|
||||
target.style.height = "auto";
|
||||
// max 70% of screen height
|
||||
target.style.height = `${Math.min(
|
||||
target.scrollHeight,
|
||||
window.innerHeight * 0.7
|
||||
)}px`;
|
||||
console.log("set auto height", target.style.height);
|
||||
};
|
||||
Reference in New Issue
Block a user