@seafile/sdoc-editor 3.0.98 → 3.0.100
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.
|
@@ -278,6 +278,25 @@
|
|
|
278
278
|
position: relative;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
+
.sdoc-editor__article .sdoc-code-block-pre {
|
|
282
|
+
display: flex;
|
|
283
|
+
position: relative;
|
|
284
|
+
overflow: auto;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.sdoc-editor__article .sdoc-code-block-pre::after {
|
|
288
|
+
content: '';
|
|
289
|
+
position: sticky;
|
|
290
|
+
right: -16px;
|
|
291
|
+
top: 0;
|
|
292
|
+
bottom: 0;
|
|
293
|
+
width: 16px;
|
|
294
|
+
background: inherit;
|
|
295
|
+
pointer-events: none;
|
|
296
|
+
display: inline-block;
|
|
297
|
+
flex-shrink: 0;
|
|
298
|
+
}
|
|
299
|
+
|
|
281
300
|
.sdoc-code-block-pre.hidden {
|
|
282
301
|
padding-bottom: 48px !important;
|
|
283
302
|
}
|
|
@@ -319,7 +338,6 @@
|
|
|
319
338
|
.sdoc-code-block-code.hide-code {
|
|
320
339
|
max-height: 580.2px;
|
|
321
340
|
display: block;
|
|
322
|
-
overflow: scroll;
|
|
323
341
|
}
|
|
324
342
|
|
|
325
343
|
.sdoc-code-block-code .sdoc-code-line {
|
|
@@ -173,7 +173,9 @@ var CodeBlock = function CodeBlock(_ref) {
|
|
|
173
173
|
}, /*#__PURE__*/_react["default"].createElement("code", {
|
|
174
174
|
ref: codeContentRef,
|
|
175
175
|
className: "sdoc-code-block-code ".concat(white_space === 'nowrap' ? 'sdoc-code-no-wrap' : '', " ").concat(!showAllCode ? 'hide-code' : '')
|
|
176
|
-
}, children)
|
|
176
|
+
}, children), !showAllCode && /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
|
+
className: "sdoc-code-block-per-padding"
|
|
178
|
+
})), isCodeBlockOverflow && /*#__PURE__*/_react["default"].createElement("span", {
|
|
177
179
|
className: "sdoc-code-block-hidden-icon",
|
|
178
180
|
onClick: toggleHidden,
|
|
179
181
|
contentEditable: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.100",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "ec117df28e801deb10aca55c08c76cb3f310dc9d"
|
|
76
76
|
}
|