From d696fe9542847c1f1155ebf82ea8404b0981ef54 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Wed, 18 Dec 2024 18:37:41 +0530 Subject: [PATCH 1/2] fix the spacing around the input in custom properties right panel --- .../CustomPropertyTable/PropertyInput.tsx | 2 +- .../CustomPropertyTable/PropertyValue.tsx | 9 +++++---- .../CustomPropertyTable/property-value.less | 1 + .../common/InlineEdit/InlineEdit.component.tsx | 4 +++- .../common/InlineEdit/inline-edit.less | 18 ++++++++++++++++++ 5 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 openmetadata-ui/src/main/resources/ui/src/components/common/InlineEdit/inline-edit.less diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyInput.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyInput.tsx index c8c0128ac6a2..1f43636a57b0 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyInput.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyInput.tsx @@ -48,7 +48,7 @@ export const PropertyInput: FC = ({ = ({ const getPropertyInput = () => { const commonStyle: CSSProperties = { marginBottom: '0px', - minWidth: '250px', + width: '100%', }; switch (propertyType.name) { case 'string': @@ -255,6 +255,7 @@ export const PropertyValue: FC = ({ onCancel={onHideInput} onSave={noop}>
= ({
@@ -359,10 +360,10 @@ export const PropertyValue: FC = ({ @@ -905,7 +906,7 @@ export const PropertyValue: FC = ({ return (
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/property-value.less b/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/property-value.less index fc786b0bdae7..cd625c814427 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/property-value.less +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/property-value.less @@ -94,5 +94,6 @@ } .custom-property-inline-edit-container { + width: 100%; overflow-x: scroll; } diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/InlineEdit/InlineEdit.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/InlineEdit/InlineEdit.component.tsx index e7e97214b088..97e203b9fd16 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/InlineEdit/InlineEdit.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/InlineEdit/InlineEdit.component.tsx @@ -14,6 +14,7 @@ import { CheckOutlined, CloseOutlined } from '@ant-design/icons'; import { Button, Space } from 'antd'; import classNames from 'classnames'; import React from 'react'; +import './inline-edit.less'; import { InlineEditProps } from './InlineEdit.interface'; const InlineEdit = ({ @@ -28,7 +29,8 @@ const InlineEdit = ({ }: InlineEditProps) => { return ( Date: Wed, 18 Dec 2024 18:54:20 +0530 Subject: [PATCH 2/2] remove unwanted css --- .../src/components/common/CustomPropertyTable/PropertyValue.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.tsx index dc36d0392746..3206fdb845b9 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/PropertyValue.tsx @@ -255,7 +255,6 @@ export const PropertyValue: FC = ({ onCancel={onHideInput} onSave={noop}>