summaryrefslogtreecommitdiff
path: root/apps/web/src/components/ui
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-10 21:37:44 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-10 21:37:44 +0200
commiteadd6940e47f36670fc6845e339c383d6319cecc (patch)
treece90007e01376cc99ebaac62ac7c832c1a3a4ff5 /apps/web/src/components/ui
parent0acead5bb19e57088b1dc664b3cbbafca10d3988 (diff)
downloadopencut-eadd6940e47f36670fc6845e339c383d6319cecc.tar.gz
feat: font size to text panel
Diffstat (limited to 'apps/web/src/components/ui')
-rw-r--r--apps/web/src/components/ui/input.tsx11
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/web/src/components/ui/input.tsx b/apps/web/src/components/ui/input.tsx
index 72314045..8fc31a58 100644
--- a/apps/web/src/components/ui/input.tsx
+++ b/apps/web/src/components/ui/input.tsx
@@ -11,14 +11,7 @@ interface InputProps extends React.ComponentProps<"input"> {
const Input = React.forwardRef<HTMLInputElement, InputProps>(
(
- {
- className,
- type,
- showPassword,
- onShowPasswordChange,
- value,
- ...props
- },
+ { className, type, showPassword, onShowPasswordChange, value, ...props },
ref
) => {
const isPassword = type === "password";
@@ -26,7 +19,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
const inputType = isPassword && showPassword ? "text" : type;
return (
- <div className="relative w-full">
+ <div className={showPassword ? "relative w-full" : ""}>
<input
type={inputType}
className={cn(