@seafile/sdoc-editor 0.1.85 → 0.1.86
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.
|
@@ -55,7 +55,10 @@ var Comment = function Comment() {
|
|
|
55
55
|
}, /*#__PURE__*/React.createElement("i", {
|
|
56
56
|
className: "sdocfont sdoc-comment mr-1"
|
|
57
57
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: "comment-list-wrapper"
|
|
58
|
+
className: "comment-list-wrapper",
|
|
59
|
+
style: isShowComments ? {
|
|
60
|
+
width: '294px'
|
|
61
|
+
} : null
|
|
59
62
|
}, isShowComments && /*#__PURE__*/React.createElement(CommentList, {
|
|
60
63
|
comments: comments,
|
|
61
64
|
selectionElement: selectionElement
|
|
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import slugid from 'slugid';
|
|
6
|
-
import { Editor, Range, Transforms, Point } from '@seafile/slate';
|
|
6
|
+
import { Editor, Range, Transforms, Point, Node } from '@seafile/slate';
|
|
7
7
|
import { ReactEditor } from '@seafile/slate-react';
|
|
8
8
|
import { getNodeType, getParentNode, getSelectedNodeByType, isTextNode, getSelectedElems, focusEditor, getNode, findPath, replaceNodeChildren } from '../../core';
|
|
9
9
|
import { ELEMENT_TYPE, KEYBOARD } from '../../constants';
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
.sdoc-table-wrapper .sdoc-table-scroll-wrapper {
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
width: fit-content;
|
|
9
|
-
overflow-x: auto;
|
|
9
|
+
overflow-x: auto;
|
|
10
|
+
cursor: default;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.sdoc-table-wrapper.scroll .sdoc-table-scroll-wrapper.scroll-at-right::before,
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
width: fit-content;
|
|
38
39
|
display: table;
|
|
39
40
|
overflow: hidden;
|
|
41
|
+
cursor: text;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.sdoc-table-wrapper .table-row {
|