datastake-daf 0.6.452 → 0.6.454
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.
package/dist/components/index.js
CHANGED
|
@@ -14594,7 +14594,6 @@ function PdfView(_ref2) {
|
|
|
14594
14594
|
ref
|
|
14595
14595
|
} = sectionsConfig[k];
|
|
14596
14596
|
ref.current.style.marginBottom = '0px';
|
|
14597
|
-
ref.current.style.breakAfter = 'always';
|
|
14598
14597
|
// ref.current.style.marginTop = '15px';
|
|
14599
14598
|
});
|
|
14600
14599
|
keys.forEach((k, i) => {
|
|
@@ -14611,7 +14610,6 @@ function PdfView(_ref2) {
|
|
|
14611
14610
|
ref.current.style.paddingBottom = '30px';
|
|
14612
14611
|
}
|
|
14613
14612
|
if (newHeight > PAGE_HEIGHT - 30 - FOOTER_HEIGHT - HEADER_HEIGHT) {
|
|
14614
|
-
const dif = Math.abs(PAGE_HEIGHT - incrHeight);
|
|
14615
14613
|
ref.current.style.marginTop = '30px';
|
|
14616
14614
|
_page += 1;
|
|
14617
14615
|
_pages.push(_page);
|
|
@@ -14619,7 +14617,7 @@ function PdfView(_ref2) {
|
|
|
14619
14617
|
const {
|
|
14620
14618
|
ref: topRef
|
|
14621
14619
|
} = sectionsConfig[keys[i - 1]];
|
|
14622
|
-
topRef.current.style.marginBottom =
|
|
14620
|
+
topRef.current.style.marginBottom = '5%';
|
|
14623
14621
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
14624
14622
|
// console.log('margin', dif);
|
|
14625
14623
|
}
|
package/package.json
CHANGED
|
@@ -61,7 +61,6 @@ export default function PdfView({
|
|
|
61
61
|
keys.forEach(k => {
|
|
62
62
|
const { ref } = sectionsConfig[k];
|
|
63
63
|
ref.current.style.marginBottom = '0px';
|
|
64
|
-
ref.current.style.breakAfter = 'always';
|
|
65
64
|
// ref.current.style.marginTop = '15px';
|
|
66
65
|
})
|
|
67
66
|
|
|
@@ -87,7 +86,7 @@ export default function PdfView({
|
|
|
87
86
|
|
|
88
87
|
if (sectionsConfig[keys[i - 1]]) {
|
|
89
88
|
const { ref: topRef } = sectionsConfig[keys[i - 1]];
|
|
90
|
-
topRef.current.style.marginBottom =
|
|
89
|
+
topRef.current.style.marginBottom = '5%';
|
|
91
90
|
incrHeight = height + 24 + HEADER_HEIGHT;
|
|
92
91
|
// console.log('margin', dif);
|
|
93
92
|
}
|