10
10
* See the License for the specific language governing permissions and
11
11
* limitations under the License.
12
12
*/
13
- import { Button , Typography } from 'antd' ;
13
+ import { Button , Col , Row , Typography } from 'antd' ;
14
14
import classNames from 'classnames' ;
15
15
import React , { Fragment } from 'react' ;
16
16
import { Handle , HandleProps , HandleType , Position } from 'reactflow' ;
@@ -152,8 +152,10 @@ export const getColumnContent = (
152
152
'lineage-column-node-handle' ,
153
153
encodeLineageHandles ( fullyQualifiedName ?? '' )
154
154
) }
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 } >
157
159
< div className = "custom-node-name-icon" >
158
160
{ getColumnDataTypeIcon ( {
159
161
dataType : column . dataType ,
@@ -165,16 +167,26 @@ export const getColumnContent = (
165
167
ellipsis = { { tooltip : true } } >
166
168
{ getEntityName ( column ) }
167
169
</ 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 >
178
190
</ div >
179
191
) ;
180
192
} ;
0 commit comments