@flozy/editor 4.6.1 → 4.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,7 +46,7 @@ const useFreeGridStyles = ({
46
46
  },
47
47
  "&.enable-1, &.enable-2": {
48
48
  "&.type_text": {
49
- // height: "fit-content !important",
49
+ minHeight: "fit-content !important",
50
50
  // for dark theme
51
51
  // pages needs no color
52
52
  "&.no-color": {
@@ -111,8 +111,20 @@ const PopupTool = props => {
111
111
  open: open,
112
112
  anchorEl: anchorEl,
113
113
  transition: true,
114
- placement: "auto-end",
115
114
  sx: classes.popupWrapper,
115
+ placement: "bottom-start" // or "top" depending on the preferred direction
116
+ ,
117
+ modifiers: [{
118
+ name: "preventOverflow",
119
+ options: {
120
+ boundary: editorWrapper?.current
121
+ }
122
+ }, {
123
+ name: "flip",
124
+ options: {
125
+ fallbackPlacements: ["top-start", "bottom-start"]
126
+ }
127
+ }],
116
128
  children: ({
117
129
  TransitionProps
118
130
  }) => /*#__PURE__*/_jsx(Fade, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "4.6.1",
3
+ "version": "4.6.3",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"