@seafile/seafile-sdoc-editor 2.0.58 → 2.0.59
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.
|
@@ -51,7 +51,7 @@ var MoreOperations = function MoreOperations(_ref) {
|
|
|
51
51
|
setIsDropdownOpen(!isDropdownOpen);
|
|
52
52
|
}, []);
|
|
53
53
|
var handlePrint = (0, _react.useCallback)(function () {
|
|
54
|
-
var pageStyle = "\n @page {\n size: auto A4 landscape;\n margin:
|
|
54
|
+
var pageStyle = "\n @page {\n size: auto A4 landscape;\n margin: 20px 0px;\n padding: 0;\n }\n .d-print-none {\n display:none !important;\n }\n .article {\n border: none !important;\n box-shadow: none !important;\n }\n html, body {\n margin: 0;\n padding: 0\n }\n body {\n min-width: 673px !important;\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n height: auto;\n }\n .d-print-none {\n display:none !important;\n }\n .article {\n width: 673px !important;\n margin: 40px 0px;\n border: none !important;\n box-shadow: none !important;\n padding: 0 !important;\n }\n @media print {\n img {\n page-break-inside: avoid;\n height: auto !important;\n max-width: 100% !important;\n }\n }\n ";
|
|
55
55
|
(0, _printJs["default"])({
|
|
56
56
|
printable: 'sdoc-editor-print-wrapper',
|
|
57
57
|
type: 'html',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/seafile-sdoc-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.59",
|
|
4
4
|
"author": "shuntian <978987373@qq.com>",
|
|
5
5
|
"homepage": "https://github.com/seafileltd/sea-sdoc-editor#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"description": "",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@seafile/print-js": "1.6.6",
|
|
32
|
-
"@seafile/sdoc-editor": "^2.0.
|
|
32
|
+
"@seafile/sdoc-editor": "^2.0.142",
|
|
33
33
|
"classnames": "2.3.2",
|
|
34
34
|
"dayjs": "1.10.7"
|
|
35
35
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "c87830290c47474115650164e718b15209cf7f82"
|
|
49
49
|
}
|