datastake-daf 0.6.369 → 0.6.371

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51499,7 +51499,7 @@ function NameNode({
51499
51499
  }
51500
51500
  const Style$d = dt.div`
51501
51501
  width: ${NAME_CARD_WIDTH}px;
51502
- height: ${NAME_CARD_HEIGHT}px;
51502
+ height: ${props => props.$isPdf ? NAME_CARD_HEIGHT : ICON_NODE_HEIGHT}px;
51503
51503
  display: flex;
51504
51504
  background: white;
51505
51505
  border-radius: 8px;
@@ -52654,7 +52654,7 @@ const DATA_NODE_SIZE = {
52654
52654
  },
52655
52655
  nameNode: {
52656
52656
  width: NAME_CARD_WIDTH,
52657
- height: NAME_CARD_HEIGHT
52657
+ height: ICON_NODE_HEIGHT
52658
52658
  }
52659
52659
  };
52660
52660
  function positionIconNodes(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.369",
3
+ "version": "0.6.371",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -14,7 +14,6 @@ import {
14
14
  MAIN_NODE_HEIGHT,
15
15
  ICON_NODE_WIDTH,
16
16
  ICON_NODE_HEIGHT,
17
- NAME_CARD_HEIGHT,
18
17
  } from "../components/Nodes/index.jsx";
19
18
 
20
19
  const DATA_NODE_SIZE = {
@@ -28,7 +27,7 @@ const DATA_NODE_SIZE = {
28
27
  },
29
28
  nameNode: {
30
29
  width: NAME_CARD_WIDTH,
31
- height: NAME_CARD_HEIGHT,
30
+ height: ICON_NODE_HEIGHT,
32
31
  },
33
32
  };
34
33
 
@@ -6,6 +6,7 @@ import CustomIcon from "../../../Icon/CustomIcon.jsx";
6
6
  import { Tooltip } from "antd";
7
7
  import { theme } from "antd";
8
8
  import { truncateString } from "../../../../../../helpers/StringHelper.js";
9
+ import { ICON_NODE_HEIGHT } from "./index.jsx";
9
10
 
10
11
  export const NAME_CARD_WIDTH = 315;
11
12
  export const NAME_CARD_HEIGHT = 37;
@@ -136,7 +137,7 @@ export default function NameNode({ data }) {
136
137
 
137
138
  const Style = styled.div`
138
139
  width: ${NAME_CARD_WIDTH}px;
139
- height: ${NAME_CARD_HEIGHT}px;
140
+ height: ${props => props.$isPdf ? NAME_CARD_HEIGHT : ICON_NODE_HEIGHT}px;
140
141
  display: flex;
141
142
  background: white;
142
143
  border-radius: 8px;