@blocklet/editor 2.4.58 → 2.4.59

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.
@@ -327,7 +327,7 @@ const ImageContainer = ({ success, loading, error, confirmText, uploadImage, pla
327
327
  return (_jsxs(Box, { sx: {
328
328
  position: 'relative',
329
329
  ...(showBorder && {
330
- p: 2,
330
+ p: 1,
331
331
  border: 1,
332
332
  borderColor: 'divider',
333
333
  borderRadius: 1,
@@ -75,6 +75,13 @@ const StyledEditorWrapper = styled(Box) `
75
75
  .PlaygroundEditorTheme__tableCellHeader {
76
76
  background-color: ${({ theme }) => theme.palette.grey[50]} !important;
77
77
  }
78
+
79
+ @container blocklet-editor (max-width: 700px) {
80
+ .be-editable img,
81
+ .be-editable *:has(img) {
82
+ width: 100% !important;
83
+ }
84
+ }
78
85
  `;
79
86
  export function StyledEditorContent({ ref = undefined, children, ...rest }) {
80
87
  return (_jsxs(StyledEditorWrapper, { ref: ref, ...rest, children: [_jsx(EditorGlobalStyle, {}), children] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/editor",
3
- "version": "2.4.58",
3
+ "version": "2.4.59",
4
4
  "main": "lib/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -70,7 +70,7 @@
70
70
  "ufo": "^1.5.4",
71
71
  "url-join": "^4.0.1",
72
72
  "zustand": "^4.5.5",
73
- "@blocklet/pdf": "2.4.58"
73
+ "@blocklet/pdf": "2.4.59"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@babel/core": "^7.25.2",