mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-08 10:24:55 -05:00
Model Form Styling
This commit is contained in:
@@ -6,7 +6,7 @@ interface IAIInputProps extends InputProps {
|
||||
label?: string;
|
||||
width?: string | number;
|
||||
value?: string;
|
||||
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
||||
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
||||
}
|
||||
|
||||
export default function IAIInput(props: IAIInputProps) {
|
||||
@@ -26,17 +26,19 @@ export default function IAIInput(props: IAIInputProps) {
|
||||
isInvalid={isInvalid}
|
||||
isDisabled={isDisabled}
|
||||
>
|
||||
<FormLabel
|
||||
fontSize={fontSize}
|
||||
fontWeight="bold"
|
||||
alignItems="center"
|
||||
whiteSpace="nowrap"
|
||||
marginBottom={0}
|
||||
marginRight={0}
|
||||
className="input-label"
|
||||
>
|
||||
{label}
|
||||
</FormLabel>
|
||||
{label !== '' && (
|
||||
<FormLabel
|
||||
fontSize={fontSize}
|
||||
fontWeight="bold"
|
||||
alignItems="center"
|
||||
whiteSpace="nowrap"
|
||||
marginBottom={0}
|
||||
marginRight={0}
|
||||
className="input-label"
|
||||
>
|
||||
{label}
|
||||
</FormLabel>
|
||||
)}
|
||||
<Input {...rest} className="input-entry" size={'sm'} width={width} />
|
||||
</FormControl>
|
||||
);
|
||||
|
||||
@@ -24,7 +24,7 @@ interface Props extends Omit<NumberInputProps, 'onChange'> {
|
||||
labelFontSize?: string | number;
|
||||
width?: string | number;
|
||||
showStepper?: boolean;
|
||||
value: number;
|
||||
value?: number;
|
||||
onChange: (v: number) => void;
|
||||
min: number;
|
||||
max: number;
|
||||
|
||||
Reference in New Issue
Block a user