@seafile/sdoc-editor 3.0.63 → 3.0.65

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
 
53
53
  .sdoc-dropdown-menu .sdoc-dropdown-menu-item:hover {
54
- background-color: #EFEFEF;
54
+ background-color: #F5F5F5;
55
55
  cursor: pointer;
56
56
  }
57
57
 
@@ -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
 
@@ -28,7 +28,6 @@
28
28
 
29
29
  .sdoc-code-block-hover-menu-container .hover-menu-container .active {
30
30
  text-decoration: none;
31
- background: #EFEFEF;
32
31
  }
33
32
 
34
33
  .sdoc-code-block-hover-menu-container .hover-menu-container .op-item {
@@ -76,13 +75,13 @@
76
75
 
77
76
  .sdoc-code-block-hover-menu-container .hover-menu-container .op-item:hover {
78
77
  text-decoration: none;
79
- background: #EFEFEF;
78
+ background: #F5F5F5;
80
79
  }
81
80
 
82
81
  .sdoc-langs-list-container {
83
82
  position: absolute;
84
83
  top: 38px;
85
- left: 0px;
84
+ left: 8px;
86
85
  width: 200px;
87
86
  overflow-y: hidden;
88
87
  background-color: #fff;
@@ -114,7 +113,7 @@
114
113
  overflow-y: auto;
115
114
  max-height: 280px;
116
115
  min-height: 100px;
117
- padding: 10px;
116
+ padding: 10px 0;
118
117
  }
119
118
 
120
119
  .sdoc-langs-list-container .langs-list-ul .langs-list-li {
@@ -124,16 +123,13 @@
124
123
  line-height: 30px;
125
124
  height: 30px;
126
125
  font-size: 13px;
127
- padding-left: 12px;
126
+ padding-left: 22px;
127
+ padding-right: 10px;
128
128
  display: flex;
129
129
  justify-content: space-between;
130
130
  }
131
131
 
132
- .sdoc-langs-list-container .langs-list-ul .langs-list-li.active {
133
- background-color: #f5f5f5;
134
- }
135
-
136
- .sdoc-langs-list-container .langs-list-ul .langs-list-li.hover {
132
+ .sdoc-langs-list-container .langs-list-ul .langs-list-li:hover {
137
133
  background-color: #f5f5f5;
138
134
  }
139
135
 
@@ -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.65",
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": "83c47f295f837c86cb6d61350960f5e85f7be5a0"
76
76
  }