Skip to content

Commit daae446

Browse files
committed
fix "how license is used" selector (wrong height due to antd changing)
1 parent b9d8275 commit daae446

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/packages/next/components/licenses/select-license.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,20 @@ export default function SelectLicense({
3636
value={x.id}
3737
key={x.id}
3838
search={`${x.id} ${x.title} ${x.description} ${JSON.stringify(
39-
x.quota
39+
x.quota,
4040
)}`.toLowerCase()}
4141
>
42-
{x.title?.trim() ? `${x.title} - ` : ''}<span style={{ fontFamily: "monospace" }}>{x.id}</span>
42+
{x.title?.trim() ? `${x.title} - ` : ""}
43+
<span style={{ fontFamily: "monospace" }}>{x.id}</span>
4344
<br />
4445
<Quota quota={x.quota} />
45-
</Option>
46+
</Option>,
4647
);
4748
}
4849

4950
return (
5051
<Select
51-
style={style}
52+
style={{ ...style, ...(license ? { height: "80px" } : undefined) }}
5253
disabled={disabled}
5354
showSearch
5455
allowClear

0 commit comments

Comments
 (0)