make password input use all available space

This commit is contained in:
P. Reis committed 2025-09-19 17:44:32 -03:00
1 parent b8fd6421fa
commit 2c2d76137b
1 file changed
+2 -3
+2 -3
View File
@@ -8,13 +8,12 @@ const PasswordInput = React.forwardRef<HTMLInputElement, React.InputHTMLAttribut
const [isFocused, setIsFocused] = React.useState(false)
return (
<div className="relative">
<div className={cn("relative", className)}>
<input
type={showPassword ? "text" : "password"}
className={cn(
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 pr-10 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
isFocused && "ring-2 ring-ring ring-offset-2",
className
isFocused && "ring-2 ring-ring ring-offset-2"
)}
ref={ref}
onFocus={(e) => {