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.
@@ -2,10 +2,6 @@
2
2
  position: relative;
3
3
  }
4
4
 
5
- .dtable-ui-collaborator-editor-container .collaborators-container {
6
- margin-top: 8px;
7
- }
8
-
9
5
  .dtable-ui-collaborator-editor-popover .collaborator-search-container {
10
6
  padding: 10px 10px 0 10px;
11
7
  }
@@ -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.length > 0 && selectedCollaborators.map(function (collaborator) {
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
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
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
@@ -1,8 +1,3 @@
1
1
  .dtable-ui-link-editor {
2
2
  position: relative;
3
3
  }
4
-
5
- .dtable-ui-link-editor-container {
6
- display: inline-block;
7
- height: 30px;
8
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.96-test1",
3
+ "version": "0.1.96-test2",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",