@seafile/sdoc-editor 1.0.152 → 1.0.154

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.
@@ -19,10 +19,10 @@ const SeaTableColumnMenu = _ref => {
19
19
  readonly,
20
20
  insertPosition,
21
21
  toggle,
22
- isHidden = true
22
+ isHidden = false
23
23
  } = _ref;
24
24
  const dropDownMenuRef = (0, _react.useRef)(null);
25
- const disabled = isHidden && (0, _helpers.isMenuDisabled)(editor, readonly);
25
+ const disabled = (0, _helpers.isMenuDisabled)(editor, readonly);
26
26
  const menuConfig = _constants.MENUS_CONFIG_MAP[_constants.ELEMENT_TYPE.SEATABLE_COLUMN];
27
27
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_dropdownMenuItem.default, {
28
28
  disabled: disabled,
@@ -20,11 +20,14 @@ const SeaTableTableMenu = _ref => {
20
20
  readonly,
21
21
  insertPosition,
22
22
  toggle,
23
- isHidden = true
23
+ isHidden = false
24
24
  } = _ref;
25
25
  const dropDownMenuRef = (0, _react.useRef)(null);
26
- const disabled = isHidden && (0, _helpers.isInsertSeaTableTableDisabled)(editor, readonly);
27
26
  const menuConfig = _constants.MENUS_CONFIG_MAP[_constants.SEATABLE_TABLE];
27
+ let disabled = (0, _helpers.isInsertSeaTableTableDisabled)(editor, readonly);
28
+ if (insertPosition === _constants.INSERT_POSITION.AFTER) {
29
+ disabled = false;
30
+ }
28
31
  const onViewClick = (0, _react.useCallback)(item => {
29
32
  (0, _helpers.insertSeaTableTable)(editor, item, insertPosition);
30
33
  toggle && toggle();
@@ -34,13 +34,13 @@
34
34
  flex: 1;
35
35
  }
36
36
 
37
- .filters-list .filter-item .condition > div {
37
+ .filters-list .filter-item .condition>div {
38
38
  height: 38px;
39
39
  line-height: 38px;
40
40
  margin-left: 0.5rem;
41
41
  }
42
42
 
43
- .filters-list .filter-item .condition > div:first-child {
43
+ .filters-list .filter-item .condition>div:first-child {
44
44
  margin-left: 0;
45
45
  }
46
46
 
@@ -324,3 +324,7 @@
324
324
  color: #aaa;
325
325
  cursor: default;
326
326
  }
327
+
328
+ .sdoc-seatable-setting-filter-popover-wrapper .date-picker-container {
329
+ margin-bottom: 0 !important;
330
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.152",
3
+ "version": "1.0.154",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",