mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): add width to mantine selects
This commit is contained in:
parent
3d84e7756a
commit
ae6db67068
@ -102,6 +102,11 @@ const LoRAModelInputFieldComponent = (
|
||||
item.value.toLowerCase().includes(value.toLowerCase().trim())
|
||||
}
|
||||
onChange={handleChange}
|
||||
sx={{
|
||||
'.mantine-Select-dropdown': {
|
||||
width: '16rem !important',
|
||||
},
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
@ -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 />}
|
||||
|
@ -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}>
|
||||
|
@ -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>
|
||||
|
@ -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}
|
||||
|
@ -98,6 +98,11 @@ const VaeModelInputFieldComponent = (
|
||||
onChange={handleChangeModel}
|
||||
disabled={data.length === 0}
|
||||
clearable
|
||||
sx={{
|
||||
'.mantine-Select-dropdown': {
|
||||
width: '16rem !important',
|
||||
},
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user