@seafile/sdoc-editor 3.0.96 → 3.0.98

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.
@@ -152,7 +152,7 @@ var CodeBlock = function CodeBlock(_ref) {
152
152
  }, []);
153
153
  (0, _react.useEffect)(function () {
154
154
  if (!codeContentRef.current) return;
155
- if (codeContentRef.current.clientHeight > Number(HIDDEN_CODE_BLOCK_MAX_HEIGHT)) {
155
+ if (codeContentRef.current.offsetHeight > Number(HIDDEN_CODE_BLOCK_MAX_HEIGHT)) {
156
156
  setIsCodeBlockOverflow(true);
157
157
  } else {
158
158
  setIsCodeBlockOverflow(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "3.0.96",
3
+ "version": "3.0.98",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -20,7 +20,7 @@
20
20
  "@seafile/comment-editor": "1.0.17",
21
21
  "@seafile/print-js": "1.6.6",
22
22
  "@seafile/react-image-lightbox": "5.0.4",
23
- "@seafile/seafile-database": "0.0.33",
23
+ "@seafile/seafile-database": "0.0.34",
24
24
  "@seafile/slate": "0.91.8",
25
25
  "@seafile/slate-history": "0.86.2",
26
26
  "@seafile/slate-hyperscript": "0.81.7",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "ed0225dc45084b5d615ae9df8ba9dc6a5d025c8f"
75
+ "gitHead": "4dcfb593b539308c0fea2b6045f8f234ef502d79"
76
76
  }