Skip to content

Commit 9b712ff

Browse files
committed
Fix the size property for antd input
1 parent f051ab7 commit 9b712ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

development/src/AntDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const AntDemo = () => {
3535
<ConfigProvider
3636
locale={locale("frFR")}
3737
theme={{algorithm: algorithm === "defaultAlgorithm" ? theme.defaultAlgorithm : theme.darkAlgorithm}}>
38-
<Card style={{height: "100%", borderRadius: 0, border: "none"}} bodyStyle={{padding: 0}}>
38+
<Card style={{height: "100%", borderRadius: 0, border: "none"}} styles={{body: {padding: 0}}}>
3939
<div style={{margin: 20, maxWidth: 400}}>
4040
{value && (
4141
<pre style={{

development/src/ant-phone/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ const PhoneInput = forwardRef(({
281281
return (
282282
<div className={`${prefixCls}-phone-input-wrapper`}
283283
ref={node => setMinWidth(node?.offsetWidth || 0)}>
284-
<Space.Compact>
284+
<Space.Compact size={antInputProps?.size || "middle"}>
285285
{dropdownRender(countriesSelect)}
286286
<Input
287287
ref={ref}

0 commit comments

Comments
 (0)