chore: update mobile adapter of model combo-box

This commit is contained in:
Zhang Minghan 2024-01-10 23:30:35 +08:00
parent 8e9a2df22a
commit 762e39c138
3 changed files with 12 additions and 2 deletions

View File

@ -18,6 +18,16 @@
margin-bottom: 0; margin-bottom: 0;
} }
} }
.model-combobox {
width: 320px;
margin-left: auto;
@media (max-width: 768px) {
width: 100% !important;
margin-left: 0 !important;
}
}
} }
.market-list { .market-list {

View File

@ -105,7 +105,7 @@ function SelectGroupMobile(props: SelectGroupProps) {
return ( return (
<div className={`mb-2 w-full`}> <div className={`mb-2 w-full`}>
<Select <Select
value={props.current.name} value={props.current.name || ""}
onValueChange={(value: string) => { onValueChange={(value: string) => {
props.onChange?.(value); props.onChange?.(value);
}} }}

View File

@ -472,7 +472,7 @@ function Market() {
payload: { idx: index, id }, payload: { idx: index, id },
}); });
}} }}
className={`ml-auto`} className={`model-combobox`}
list={channelModels} list={channelModels}
placeholder={t( placeholder={t(
"admin.market.model-id-placeholder", "admin.market.model-id-placeholder",