@seafile/sdoc-editor 3.0.63 → 3.0.64

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.
@@ -51,7 +51,7 @@
51
51
 
52
52
  .sdoc-file-preview-drawer .file-preview-panel-header-right .file-preview-full-screen .sdocfont {
53
53
  color: #666;
54
- font-size: 14px;
54
+ font-size: 16px;
55
55
  }
56
56
 
57
57
 
@@ -122,8 +122,10 @@ var FileLink = function FileLink(_ref) {
122
122
  if (isShowInsertHoverMenu) {
123
123
  e.stopPropagation();
124
124
  }
125
- setPosition(e.currentTarget);
126
- setIsShowInsertHoverMenu(true);
125
+ if (!isShowInsertHoverMenu) {
126
+ setPosition(e.currentTarget);
127
+ setIsShowInsertHoverMenu(true);
128
+ }
127
129
  setTimeout(function () {
128
130
  registerEventHandle();
129
131
  }, 0);
@@ -59,6 +59,7 @@
59
59
  .sdoc-image-hover-menu-container .sdoc-image-popover {
60
60
  position: absolute;
61
61
  top: 37px;
62
+ left: 8px;
62
63
  background-color: #fff;
63
64
  border: 1px solid #e5e6e8;
64
65
  border-radius: 2px;
@@ -168,7 +168,7 @@ var ImageHoverMenu = function ImageHoverMenu(_ref) {
168
168
  var isBlockChild = [_constants.TABLE, _constants.BLOCKQUOTE, _constants.CALL_OUT, _constants.MULTI_COLUMN].includes(type);
169
169
  if (!isBlockChild) return null;
170
170
  return {
171
- left: '0px'
171
+ left: '8px'
172
172
  };
173
173
  }, [type]);
174
174
  return /*#__PURE__*/_react["default"].createElement(_commons.ElementPopover, null, /*#__PURE__*/_react["default"].createElement("div", {
@@ -207,8 +207,9 @@ var ImageHoverMenu = function ImageHoverMenu(_ref) {
207
207
  })), /*#__PURE__*/_react["default"].createElement("span", {
208
208
  id: "sdoc_image_border",
209
209
  role: "button",
210
- className: (0, _classnames["default"])('op-item', 'ml-1', {
211
- 'active': popoverState.borderPopover
210
+ className: (0, _classnames["default"])('op-item', {
211
+ 'active': popoverState.borderPopover,
212
+ 'ml-1': ![_constants.TABLE, _constants.BLOCKQUOTE, _constants.CALL_OUT, _constants.MULTI_COLUMN].includes(type)
212
213
  }),
213
214
  onClick: function onClick(e) {
214
215
  onShowProver(e, 'borderPopover');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "3.0.63",
3
+ "version": "3.0.64",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "babe03e6a155fb5aaab7bbc6e5baf2f380da94bc"
75
+ "gitHead": "717aa50d4dac9eeff1723107dca13a53956f01b7"
76
76
  }