datastake-daf 0.6.435 → 0.6.436

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.
@@ -14618,7 +14618,7 @@ function PdfView(_ref2) {
14618
14618
  const {
14619
14619
  ref: topRef
14620
14620
  } = sectionsConfig[keys[i - 1]];
14621
- topRef.current.style.marginBottom = "".concat(dif + HEADER_HEIGHT - 24, "px");
14621
+ topRef.current.style.marginBottom = _page === 1 ? "".concat(dif + HEADER_HEIGHT - 24, "px") : "".concat(dif * 0.5, "px");
14622
14622
  incrHeight = height + 24 + HEADER_HEIGHT;
14623
14623
  // console.log('margin', dif);
14624
14624
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.435",
3
+ "version": "0.6.436",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -86,7 +86,7 @@ export default function PdfView({
86
86
 
87
87
  if (sectionsConfig[keys[i - 1]]) {
88
88
  const { ref: topRef } = sectionsConfig[keys[i - 1]];
89
- topRef.current.style.marginBottom = `${dif + HEADER_HEIGHT - 24}px`;
89
+ topRef.current.style.marginBottom = _page === 1 ? `${dif + HEADER_HEIGHT - 24}px` : `${dif * 0.5}px`;
90
90
  incrHeight = height + 24 + HEADER_HEIGHT;
91
91
  // console.log('margin', dif);
92
92
  }