Commit d1d5fd8 Siddhartha Bingi
committed
1 parent 0645781 commit d1d5fd8 Copy full SHA for d1d5fd8
File tree 2 files changed +17
-2
lines changed
public/pages/ConfigureModel/components/CategoryField
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ .categoryFieldComboBox {
2
+ // Ensure the combo box can handle multiple selections
3
+ .euiComboBoxPill {
4
+ max-width : 100% ;
5
+ white-space : nowrap ;
6
+ overflow : hidden ;
7
+ text-overflow : ellipsis ;
8
+ }
9
+
10
+ .euiComboBox__inputWrap {
11
+ max-height : 150px ; // Adjust height to accommodate more selections
12
+ overflow-y : auto ;
13
+ }
14
+ }
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import {
33
33
validateCategoryField ,
34
34
} from '../../../../utils/utils' ;
35
35
import { ModelConfigurationFormikValues } from '../../models/interfaces' ;
36
+ import './CategoryField.module.scss' ;
36
37
37
38
interface CategoryFieldProps {
38
39
isEdit : boolean ;
@@ -74,7 +75,7 @@ export function CategoryField(props: CategoryFieldProps) {
74
75
style = { { lineHeight : 'normal' } }
75
76
>
76
77
Split a single time series into multiple time series based on
77
- categorical fields. You can select up to 2 .{ ' ' }
78
+ categorical fields. You can select up to 5 .{ ' ' }
78
79
< EuiLink href = { `${ BASE_DOCS_LINK } /ad` } target = "_blank" >
79
80
Learn more
80
81
</ EuiLink >
@@ -155,7 +156,7 @@ export function CategoryField(props: CategoryFieldProps) {
155
156
onChange = { ( options ) => {
156
157
const selection = options . map ( ( option ) => option . label ) ;
157
158
if ( ! isEmpty ( selection ) ) {
158
- if ( selection . length <= 2 ) {
159
+ if ( selection . length <= 5 ) {
159
160
form . setFieldValue ( 'categoryField' , selection ) ;
160
161
}
161
162
} else {
You can’t perform that action at this time.
0 commit comments