feat(ui): add width to mantine selects

This commit is contained in:
psychedelicious 2023-08-17 21:38:12 +10:00
parent 3d84e7756a
commit ae6db67068
6 changed files with 30 additions and 0 deletions

View File

@ -102,6 +102,11 @@ const LoRAModelInputFieldComponent = (
item.value.toLowerCase().includes(value.toLowerCase().trim())
}
onChange={handleChange}
sx={{
'.mantine-Select-dropdown': {
width: '16rem !important',
},
}}
/>
);
};

View File

@ -133,6 +133,11 @@ const MainModelInputFieldComponent = (
error={!selectedModel}
disabled={data.length === 0}
onChange={handleChangeModel}
sx={{
'.mantine-Select-dropdown': {
width: '16rem !important',
},
}}
/>
)}
{isSyncModelEnabled && <SyncModelsButton className="nodrag" iconMode />}

View File

@ -104,6 +104,11 @@ const RefinerModelInputFieldComponent = (
error={data.length === 0}
disabled={data.length === 0}
onChange={handleChangeModel}
sx={{
'.mantine-Select-dropdown': {
width: '16rem !important',
},
}}
/>
{isSyncModelEnabled && (
<Box mt={7}>

View File

@ -131,6 +131,11 @@ const ModelInputFieldComponent = (
error={data.length === 0}
disabled={data.length === 0}
onChange={handleChangeModel}
sx={{
'.mantine-Select-dropdown': {
width: '16rem !important',
},
}}
/>
{isSyncModelEnabled && <SyncModelsButton className="nodrag" iconMode />}
</Flex>

View File

@ -65,6 +65,11 @@ const SchedulerInputField = (
return (
<IAIMantineSearchableSelect
className="nowheel nodrag"
sx={{
'.mantine-Select-dropdown': {
width: '14rem !important',
},
}}
value={field.value}
data={data}
onChange={handleChange}

View File

@ -98,6 +98,11 @@ const VaeModelInputFieldComponent = (
onChange={handleChangeModel}
disabled={data.length === 0}
clearable
sx={{
'.mantine-Select-dropdown': {
width: '16rem !important',
},
}}
/>
);
};