Let ... in ... block is working

This commit is contained in:
Joeri Exelmans 2025-05-13 15:06:15 +02:00
parent f09261df93
commit 897824e07d
10 changed files with 28 additions and 24 deletions

View file

@ -51,6 +51,6 @@ export function focusPrevElement() {
export const autoInputWidth = (inputRef: React.RefObject<HTMLInputElement| null>, text) => {
if (inputRef.current) {
inputRef.current.style.width = `${text.length === 0 ? 140 : (text.length*8.7)}px`;
inputRef.current.style.width = `${text.length === 0 ? 150 : (text.length*8.7)}px`;
}
}