dtable-ui-component 0.1.96-test1 → 0.1.96-test2
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.
|
@@ -197,9 +197,9 @@ var CollaboratorEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
197
197
|
}, /*#__PURE__*/React.createElement(EditEditorButton, {
|
|
198
198
|
text: getLocale('Add_a_collaborator'),
|
|
199
199
|
onClick: this.onAddOptionToggle
|
|
200
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
201
|
-
className: "collaborators-container"
|
|
202
|
-
}, selectedCollaborators.
|
|
200
|
+
}), selectedCollaborators.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
201
|
+
className: "collaborators-container mt-2"
|
|
202
|
+
}, selectedCollaborators.map(function (collaborator) {
|
|
203
203
|
return /*#__PURE__*/React.createElement(CollaboratorItem, {
|
|
204
204
|
key: collaborator.email,
|
|
205
205
|
collaborator: collaborator,
|
|
@@ -11,40 +11,15 @@ var EditEditorButton = /*#__PURE__*/function (_React$Component) {
|
|
|
11
11
|
var _super = _createSuper(EditEditorButton);
|
|
12
12
|
|
|
13
13
|
function EditEditorButton() {
|
|
14
|
-
var _this;
|
|
15
|
-
|
|
16
14
|
_classCallCheck(this, EditEditorButton);
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
args[_key] = arguments[_key];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
23
|
-
|
|
24
|
-
_this.getStyle = function () {
|
|
25
|
-
return {
|
|
26
|
-
display: 'inline-block',
|
|
27
|
-
padding: '0 12px',
|
|
28
|
-
height: '28px',
|
|
29
|
-
lineHeight: '28px',
|
|
30
|
-
fontSize: '14px',
|
|
31
|
-
backgroundColor: '#f0f0f0',
|
|
32
|
-
color: '#8f8f8f',
|
|
33
|
-
borderRadius: '4px',
|
|
34
|
-
cursor: 'pointer',
|
|
35
|
-
userSelect: 'none'
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return _this;
|
|
16
|
+
return _super.apply(this, arguments);
|
|
40
17
|
}
|
|
41
18
|
|
|
42
19
|
_createClass(EditEditorButton, [{
|
|
43
20
|
key: "render",
|
|
44
21
|
value: function render() {
|
|
45
22
|
var text = this.props.text;
|
|
46
|
-
var style = this.getStyle(); //<span style={style} onClick={this.props.onClick}>{text}</span>
|
|
47
|
-
|
|
48
23
|
return /*#__PURE__*/React.createElement("span", {
|
|
49
24
|
className: "dtable-ui-editor-button",
|
|
50
25
|
onClick: this.props.onClick
|
package/lib/LinkEditor/index.css
CHANGED