@seafile/sdoc-editor 1.0.36 → 1.0.37

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.
@@ -63,7 +63,8 @@ export default function RecordHeader(_ref) {
63
63
  className: "seatable-view-column-header-cell",
64
64
  key: column.key,
65
65
  style: {
66
- width
66
+ width,
67
+ minWidth: width
67
68
  }
68
69
  }, /*#__PURE__*/React.createElement("span", null, column.name), isCanModifyColumnWidth && /*#__PURE__*/React.createElement(Draggable, {
69
70
  style: dragAbleStyle,
@@ -27,7 +27,8 @@ export default function RecordItem(_ref) {
27
27
  className: "seatable-view-body-column-cell",
28
28
  key: record._id + '_' + column.key,
29
29
  style: {
30
- width
30
+ width,
31
+ minWidth: width
31
32
  }
32
33
  }, /*#__PURE__*/React.createElement(Formatter, {
33
34
  isSample: true,
@@ -33,11 +33,11 @@ const MoreOperations = _ref => {
33
33
  }, []);
34
34
  const handlePrint = useCallback(() => {
35
35
  printJS({
36
- printable: 'sdoc-editor',
36
+ printable: 'sdoc-editor-print-wrapper',
37
37
  type: 'html',
38
38
  scanStyles: true,
39
39
  targetStyles: ['*'],
40
- style: '@page { size: auto A4 landscape;margin:20px auto; padding: 0;} .d-print-none{display:none !important;}',
40
+ style: '@page { size: auto A4 landscape;margin:20px auto; padding: 0;} .d-print-none{display:none !important;} .article {border: none !important; box-shadow: none !important; } html, body {margin: 0; padding: 0}',
41
41
  css: cssUrls
42
42
  });
43
43
  }, [cssUrls]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",