mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Mantine Required icon being on new line
This commit is contained in:
parent
d93d42af4a
commit
5b047baeb0
@ -16,7 +16,7 @@ export type IAISelectProps = Omit<SelectProps, 'label'> & {
|
||||
};
|
||||
|
||||
const IAIMantineSelect = (props: IAISelectProps) => {
|
||||
const { tooltip, inputRef, label, disabled, ...rest } = props;
|
||||
const { tooltip, inputRef, label, disabled, required, ...rest } = props;
|
||||
|
||||
const styles = useMantineSelectStyles();
|
||||
|
||||
@ -25,7 +25,7 @@ const IAIMantineSelect = (props: IAISelectProps) => {
|
||||
<Select
|
||||
label={
|
||||
label ? (
|
||||
<FormControl isDisabled={disabled}>
|
||||
<FormControl isRequired={required} isDisabled={disabled}>
|
||||
<FormLabel>{label}</FormLabel>
|
||||
</FormControl>
|
||||
) : undefined
|
||||
|
@ -102,6 +102,7 @@ export default function ManualAddCheckpoint() {
|
||||
<Flex flexDirection="column" width="100%" gap={2}>
|
||||
{!useCustomConfig ? (
|
||||
<CheckpointConfigsSelect
|
||||
required
|
||||
width="100%"
|
||||
{...manualAddCheckpointForm.getInputProps('config')}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user