mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
make password input use all available space
This commit is contained in:
1 parent
b8fd6421fa
commit
2c2d76137b
1 file changed
+2
-3
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user