mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-01 01:52:42 +03:00
fix(component): input style (#2285)
This commit is contained in:
parent
b978bb171a
commit
a84ca43ce2
@ -37,6 +37,7 @@ export const Input = forwardRef<HTMLInputElement, inputProps>(function Input(
|
||||
width,
|
||||
onChange,
|
||||
noBorder = false,
|
||||
className,
|
||||
...otherProps
|
||||
}: inputProps,
|
||||
ref: ForwardedRef<HTMLInputElement>
|
||||
@ -51,7 +52,7 @@ export const Input = forwardRef<HTMLInputElement, inputProps>(function Input(
|
||||
|
||||
return (
|
||||
<input
|
||||
className={clsx(inputStyle, otherProps.className)}
|
||||
className={clsx(inputStyle, className)}
|
||||
style={assignInlineVars({
|
||||
[widthVar]: width ? `${width}px` : '100%',
|
||||
[heightVar]: height ? `${height}px` : 'unset',
|
||||
|
Loading…
Reference in New Issue
Block a user