datastake-daf 0.6.370 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.370",
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 = {
@@ -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;