Skip to content

Commit

Permalink
making inputs full width
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Nov 17, 2022
1 parent 9e005ff commit 49bbd0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,30 @@ export const InferenceInputFormIndexControls: FC<Props> = ({ inferrer, data }) =

return (
<>
<EuiFormRow label="Index">
<EuiFormRow label="Index" fullWidth>
<EuiSelect
options={dataViewListItems}
value={selectedDataViewId}
onChange={(e) => setSelectedDataViewId(e.target.value)}
hasNoInitialSelection={true}
disabled={runningState === RUNNING_STATE.RUNNING}
fullWidth
/>
</EuiFormRow>
<EuiSpacer size="m" />
<EuiFormRow
label={i18n.translate('xpack.ml.trainedModels.testModelsFlyout.indexInput.fieldInput', {
defaultMessage: 'Field',
})}
fullWidth
>
<EuiSelect
options={fieldNames}
value={selectedField}
onChange={(e) => setSelectedField(e.target.value)}
hasNoInitialSelection={true}
disabled={runningState === RUNNING_STATE.RUNNING}
fullWidth
/>
</EuiFormRow>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const TextInput: FC<{
label={i18n.translate('xpack.ml.trainedModels.testModelsFlyout.generalTextInput.inputTitle', {
defaultMessage: 'Input text',
})}
fullWidth
>
<EuiTextArea
placeholder={
Expand Down

0 comments on commit 49bbd0c

Please sign in to comment.