@seafile/sdoc-editor 0.1.92 → 0.1.93

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.
@@ -7,5 +7,5 @@
7
7
  background-color: #fff;
8
8
  border: 1px solid #e8e8e8;
9
9
  border-radius: 3px;
10
- box-shadow: 0 2px 5px #0000001f;
10
+ box-shadow: rgba(15, 15, 15, 0.05) 0px 0px 0px 0px, rgba(15, 15, 15, 0.1) 0px 3px 6px, rgba(15, 15, 15, 0.2) 0px 9px 24px;
11
11
  }
@@ -19,7 +19,7 @@ var ContextToolbar = function ContextToolbar() {
19
19
  var domSelection = window.getSelection();
20
20
  var domRange = domSelection.getRangeAt(0);
21
21
  var rect = domRange.getBoundingClientRect();
22
- el.style.top = "".concat(rect.top - el.offsetHeight, "px");
22
+ el.style.top = "".concat(rect.top - 42 - 12, "px"); // top = Current top - Element height - Shaded part
23
23
  el.style.left = "".concat(rect.left, "px");
24
24
  el.style.display = 'block';
25
25
  // eslint-disable-next-line react-hooks/exhaustive-deps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.92",
3
+ "version": "0.1.93",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",