refactor: rename components and update import paths for consistency

This commit is contained in:
ecwu
2025-01-03 11:30:12 +08:00
parent 3060543ee7
commit 3728766d7f
12 changed files with 8 additions and 220 deletions

View 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);
};