use @ import alias
All checks were successful
Build static content / build (push) Successful in 10m51s
All checks were successful
Build static content / build (push) Successful in 10m51s
This commit is contained in:
@@ -3,7 +3,7 @@ export const autoHeight = (target: any) => {
|
||||
// max 70% of screen height
|
||||
target.style.height = `${Math.min(
|
||||
target.scrollHeight,
|
||||
window.innerHeight * 0.7
|
||||
window.innerHeight * 0.7,
|
||||
)}px`;
|
||||
console.log("set auto height", target.style.height);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user