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