Skip to content

Commit e72882c

Browse files
added style change
1 parent 9fb8dea commit e72882c

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityLineage/CustomNode.utils.tsx

+25-13
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* See the License for the specific language governing permissions and
1111
* limitations under the License.
1212
*/
13-
import { Button, Typography } from 'antd';
13+
import { Button, Col, Row, Typography } from 'antd';
1414
import classNames from 'classnames';
1515
import React, { Fragment } from 'react';
1616
import { Handle, HandleProps, HandleType, Position } from 'reactflow';
@@ -152,8 +152,10 @@ export const getColumnContent = (
152152
'lineage-column-node-handle',
153153
encodeLineageHandles(fullyQualifiedName ?? '')
154154
)}
155-
<div className={classNames('d-flex justify-between w-full')}>
156-
<span className="custom-node-name-container">
155+
<Row gutter={24}>
156+
<Col
157+
className="custom-node-name-container"
158+
span={showDataObservabilitySummary ? 8 : 12}>
157159
<div className="custom-node-name-icon">
158160
{getColumnDataTypeIcon({
159161
dataType: column.dataType,
@@ -165,16 +167,26 @@ export const getColumnContent = (
165167
ellipsis={{ tooltip: true }}>
166168
{getEntityName(column)}
167169
</Typography.Text>
168-
</span>
169-
<span className="custom-node-constraint">{column.constraint}</span>
170-
</div>
171-
{showDataObservabilitySummary && (
172-
<TestSuiteSummaryWidget
173-
isLoading={isLoading}
174-
size="small"
175-
summary={summary}
176-
/>
177-
)}
170+
</Col>
171+
172+
<Col
173+
className={classNames(
174+
'custom-node-constraint',
175+
showDataObservabilitySummary ? 'text-left' : 'text-right'
176+
)}
177+
span={showDataObservabilitySummary ? 8 : 12}>
178+
{column.constraint}
179+
</Col>
180+
{showDataObservabilitySummary && (
181+
<Col span={8}>
182+
<TestSuiteSummaryWidget
183+
isLoading={isLoading}
184+
size="small"
185+
summary={summary}
186+
/>
187+
</Col>
188+
)}
189+
</Row>
178190
</div>
179191
);
180192
};

openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityLineage/custom-node.less

+2-5
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,11 @@
268268
}
269269

270270
.react-flow .lineage-column-node-handle {
271-
width: 20px;
271+
width: 30px;
272272
border-radius: 0;
273273
border-color: @lineage-border;
274274
background: transparent;
275-
top: 1px;
275+
top: 5px;
276276
height: 25px;
277277
transform: none;
278278
border: none;
@@ -287,9 +287,6 @@
287287
}
288288

289289
.custom-node-column-container {
290-
display: flex;
291-
justify-content: space-between;
292-
align-items: center;
293290
padding: 6px;
294291
background: @white;
295292
position: relative;

0 commit comments

Comments
 (0)