@blocklet/editor 1.6.238 → 1.6.240
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.
package/lib/main/editor.js
CHANGED
|
@@ -147,5 +147,11 @@ const EditorContent = styled.div `
|
|
|
147
147
|
outline: 2px solid rgb(60, 132, 244);
|
|
148
148
|
user-select: none;
|
|
149
149
|
}
|
|
150
|
+
|
|
151
|
+
// 增大最外层 list item 的 marginLeft, https://github.com/blocklet/discuss-kit/issues/2123
|
|
152
|
+
> ol > li,
|
|
153
|
+
> ul > li {
|
|
154
|
+
margin-left: 32px;
|
|
155
|
+
}
|
|
150
156
|
}
|
|
151
157
|
`;
|
|
@@ -53,7 +53,7 @@ function TweetComponent({ className, format, loadingComponent, nodeKey, onError,
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}, [createTweet, onError, tweetID]);
|
|
56
|
-
return (_jsxs(BlockWithAlignableContents, { className: className, format: format, nodeKey: nodeKey, children: [isTweetLoading ? loadingComponent : null, _jsx("div", { style: { display: 'inline-block', width: '
|
|
56
|
+
return (_jsxs(BlockWithAlignableContents, { className: className, format: format, nodeKey: nodeKey, children: [isTweetLoading ? loadingComponent : null, _jsx("div", { style: { display: 'inline-block', width: '100%' }, ref: containerRef })] }));
|
|
57
57
|
}
|
|
58
58
|
export class TweetNode extends DecoratorBlockNode {
|
|
59
59
|
__id;
|
|
@@ -118,7 +118,7 @@ const createCustomTheme = (theme) => {
|
|
|
118
118
|
...theme.typography.body1,
|
|
119
119
|
};
|
|
120
120
|
const ol1 = css(`
|
|
121
|
-
margin: '1.3333333em 0'
|
|
121
|
+
margin: '1.3333333em 0';
|
|
122
122
|
`, olCommon);
|
|
123
123
|
const ol2 = css(`
|
|
124
124
|
list-style-type: upper-alpha;
|
|
@@ -140,7 +140,7 @@ const createCustomTheme = (theme) => {
|
|
|
140
140
|
}
|
|
141
141
|
`;
|
|
142
142
|
const listItem = css(`
|
|
143
|
-
margin-left:
|
|
143
|
+
margin-left: 28px;
|
|
144
144
|
margin-top: 0.5em;
|
|
145
145
|
margin-bottom: 0.5em;
|
|
146
146
|
padding-left: 0.25em;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/editor",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.240",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npm run storybook",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@arcblock/ux": "^2.9.77",
|
|
41
41
|
"@blocklet/embed": "^0.1.11",
|
|
42
42
|
"@blocklet/pages-kit": "^0.2.302",
|
|
43
|
-
"@blocklet/pdf": "1.6.
|
|
43
|
+
"@blocklet/pdf": "1.6.240",
|
|
44
44
|
"@excalidraw/excalidraw": "^0.14.2",
|
|
45
45
|
"@iconify/iconify": "^3.0.1",
|
|
46
46
|
"@iconify/icons-tabler": "^1.2.95",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"react": "*",
|
|
111
111
|
"react-dom": "*"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "9b732935a76ba2ee193dbb49d0d50621ec305fc1"
|
|
114
114
|
}
|