diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 8d4c6dc..f465516 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -71,12 +71,15 @@ export function Home() { value={inputValue} onChange={handleInputChange} className={`font-roboto h-14 rounded-t-2xl border border-input-border-color bg-input p-2 text-center text-xl placeholder:text-input-text focus:outline-none ${ - isFocused ? "w-10/12 md:w-3/12" : "w-80 rounded-2xl" + isFocused && inputValue.trim() !== "" + ? "w-10/12 md:w-3/12" + : "w-80 rounded-2xl" } transition-all duration-300`} placeholder={isFocused ? "" : t("home.placeholder")} /> +