@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.
|
@@ -122,8 +122,10 @@ var FileLink = function FileLink(_ref) {
|
|
|
122
122
|
if (isShowInsertHoverMenu) {
|
|
123
123
|
e.stopPropagation();
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
if (!isShowInsertHoverMenu) {
|
|
126
|
+
setPosition(e.currentTarget);
|
|
127
|
+
setIsShowInsertHoverMenu(true);
|
|
128
|
+
}
|
|
127
129
|
setTimeout(function () {
|
|
128
130
|
registerEventHandle();
|
|
129
131
|
}, 0);
|
|
@@ -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: '
|
|
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',
|
|
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.
|
|
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": "
|
|
75
|
+
"gitHead": "717aa50d4dac9eeff1723107dca13a53956f01b7"
|
|
76
76
|
}
|