mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 13:56:47 +01:00
8f57bfb496
* multiple fix * fix: album re-render * fix: revert re-render album * fix: linter --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
4 lines
177 B
TypeScript
4 lines
177 B
TypeScript
export const autoGrowHeight = (textarea: HTMLTextAreaElement, height = 'auto') => {
|
|
textarea.style.height = height;
|
|
textarea.style.height = `${textarea.scrollHeight}px`;
|
|
};
|