fix(ui): unable to add more enum values for enum cp (#18440)

* fix(ui): unable to add more enum values for enum cp

* replicate height constraint and dropdown visibility to add cp
This commit is contained in:
Chirag Madlani 2024-10-29 12:18:51 +05:30 committed by GitHub
parent 0114007a22
commit e197c3f3d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 2 deletions

View File

@ -326,6 +326,8 @@ const AddCustomProperty = () => {
'data-testid': 'enumConfig',
mode: 'tags',
placeholder: t('label.enum-value-plural'),
open: false,
className: 'trim-select',
},
rules: [
{

View File

@ -100,6 +100,8 @@ const EditCustomPropertyModal: FC<EditCustomPropertyModalProps> = ({
const updatedValues = uniq([...value, ...(enumConfig?.values ?? [])]);
form.setFieldsValue({ customPropertyConfig: updatedValues });
},
open: false,
className: 'trim-select',
},
rules: [
{

View File

@ -286,13 +286,16 @@ export const DEF_UI_SCHEMA = {
supportsMetadataExtraction: { 'ui:widget': 'hidden', 'ui:hideError': true },
supportsUsageExtraction: { 'ui:widget': 'hidden', 'ui:hideError': true },
supportsLineageExtraction: { 'ui:widget': 'hidden', 'ui:hideError': true },
supportsViewLineageExtraction: { 'ui:widget': 'hidden', 'ui:hideError': true },
supportsViewLineageExtraction: {
'ui:widget': 'hidden',
'ui:hideError': true,
},
supportsProfiler: { 'ui:widget': 'hidden', 'ui:hideError': true },
supportsDatabase: { 'ui:widget': 'hidden', 'ui:hideError': true },
supportsQueryComment: { 'ui:widget': 'hidden', 'ui:hideError': true },
supportsDBTExtraction: { 'ui:widget': 'hidden', 'ui:hideError': true },
type: { 'ui:widget': 'hidden' },
}
};
export const INGESTION_ELASTIC_SEARCH_WORKFLOW_UI_SCHEMA = {
useSSL: { 'ui:widget': 'hidden', 'ui:hideError': true },

View File

@ -50,3 +50,10 @@
}
}
}
.ant-select.trim-select {
.ant-select-selection-overflow {
max-height: 200px;
overflow-y: auto;
}
}