@seafile/sdoc-editor 2.0.30 → 2.0.31

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.
@@ -69,7 +69,7 @@ function AIModule(_ref) {
69
69
  const heightDiff = rect.bottom + _constants.AI_MIN_HEIGHT - window.innerHeight;
70
70
  if (heightDiff > 0) {
71
71
  scrollRef.current.scrollTo({
72
- top: scrollRef.current.scrollTop + heightDiff + 32,
72
+ top: scrollTop + rect.top - 94,
73
73
  behavior: 'smooth'
74
74
  });
75
75
  }
@@ -102,7 +102,7 @@ function AIModule(_ref) {
102
102
  const heightDiff = slateRect.bottom + _constants.AI_MIN_HEIGHT - window.innerHeight;
103
103
  if (heightDiff > 0) {
104
104
  scrollRef.current.scrollTo({
105
- top: scrollRef.current.scrollTop + heightDiff + 32,
105
+ top: scrollTop + slateRect.top - 94,
106
106
  behavior: 'smooth'
107
107
  });
108
108
  }
@@ -65,6 +65,7 @@
65
65
  box-shadow: 0 0 10px #ccc;
66
66
  background-color: #fff;
67
67
  pointer-events: all;
68
+ overflow: hidden;
68
69
  }
69
70
 
70
71
  .sdoc-ai-module-container .sdoc-ai-operations .op-type {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",