datastake-daf 0.6.455 → 0.6.456

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.
@@ -14579,7 +14579,8 @@ function PdfView(_ref2) {
14579
14579
  userId = 'IDD-0000000',
14580
14580
  accountId = 'IDD-0000000',
14581
14581
  documentId = 'IDD-0000000',
14582
- downloadId = 'DWL-00000123'
14582
+ downloadId = 'DWL-00000123',
14583
+ isEvaluation = false
14583
14584
  } = _ref2;
14584
14585
  const [sectionsConfig, setSectionsConfig] = React.useState({});
14585
14586
  const [pages, setPages] = React.useState([1]);
@@ -14618,7 +14619,7 @@ function PdfView(_ref2) {
14618
14619
  const {
14619
14620
  ref: topRef
14620
14621
  } = sectionsConfig[keys[i - 1]];
14621
- topRef.current.style.marginBottom = "".concat(dif + HEADER_HEIGHT - 24, "px");
14622
+ topRef.current.style.marginBottom = isEvaluation ? '5%' : "".concat(dif + HEADER_HEIGHT - 24, "px");
14622
14623
  incrHeight = height + 24 + HEADER_HEIGHT;
14623
14624
  // console.log('margin', dif);
14624
14625
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.455",
3
+ "version": "0.6.456",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -46,6 +46,7 @@ export default function PdfView({
46
46
  accountId = 'IDD-0000000',
47
47
  documentId = 'IDD-0000000',
48
48
  downloadId = 'DWL-00000123',
49
+ isEvaluation = false,
49
50
  }) {
50
51
  const [sectionsConfig, setSectionsConfig] = useState({});
51
52
  const [pages, setPages] = useState([1]);
@@ -86,7 +87,7 @@ export default function PdfView({
86
87
 
87
88
  if (sectionsConfig[keys[i - 1]]) {
88
89
  const { ref: topRef } = sectionsConfig[keys[i - 1]];
89
- topRef.current.style.marginBottom = `${dif + HEADER_HEIGHT - 24}px`;
90
+ topRef.current.style.marginBottom = isEvaluation ? '5%' : `${dif + HEADER_HEIGHT - 24}px`;
90
91
  incrHeight = height + 24 + HEADER_HEIGHT;
91
92
  // console.log('margin', dif);
92
93
  }