Skip to content

Commit

Permalink
[fix-DataLinkDC#2777]Fix flink dag tooltip (DataLinkDC#2803)
Browse files Browse the repository at this point in the history
* fix log error

* Fix flink dag tooltip
  • Loading branch information
gaoyan1998 authored Dec 26, 2023
1 parent d1ad9c8 commit f9ff0ab
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,29 @@
*
*/

import { Card, Typography } from 'antd';
import {Card, Typography} from 'antd';

const { Text, Paragraph } = Typography;
const {Text, Paragraph} = Typography;

const DagPlanNode = (props: any) => {
const { node } = props;
const {node} = props;
const data: any = node?.getData();

return (
<Card
style={{ width: 270, padding: 0, margin: 0, height: 140 }}
style={{width: 270, padding: 0, margin: 0, height: 140}}
bordered={false}
size={'small'}
type={'inner'}
hoverable={true}
title={data.description}
extra={<Text keyboard>{data.parallelism}</Text>}
>
<Paragraph ellipsis={{ tooltip: data.description, rows: 3 }}>
<Paragraph
ellipsis={{
tooltip: {title: data.description, zIndex: 2000},
rows: 3
}}>
<blockquote>
<Text>{data.description}</Text>
</blockquote>
Expand Down

0 comments on commit f9ff0ab

Please sign in to comment.