@seafile/seafile-editor 2.0.11 → 2.0.12

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.
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.generateTableRow = exports.generateTableCell = exports.generateTable = void 0;
7
7
  var _core = require("../../core");
8
8
  var _elementTypes = require("../../constants/element-types");
9
- var _constants = require("../../constants");
10
9
  /**
11
10
  * @param {Object} options
12
11
  * @param {Node[] | String} [options.childrenOrText = ''] If provide a string,that will generate a text node as children automatically
@@ -52,17 +52,16 @@
52
52
  }
53
53
 
54
54
  .longtext-header-container .longtext-header-tool-item {
55
- font-size: 16px;
56
- font-weight: 700;
57
- color: #000;
58
- cursor: pointer;
59
- opacity: 0.5;
60
55
  width: 24px;
61
56
  height: 24px;
62
- text-align: center;
63
- display: block;
64
- line-height: 24px;
57
+ font-weight: 400;
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
65
61
  border-radius: 3px;
62
+ color: #666;
63
+ font-size: 14px;
64
+ cursor: pointer;
66
65
  }
67
66
 
68
67
  .longtext-header-container .longtext-header-tool-item.long-text-full-screen {
@@ -70,7 +69,7 @@
70
69
  }
71
70
 
72
71
  .longtext-header-container .longtext-header-tool-item:not(.long-text-full-screen):hover {
73
- opacity: 1;
72
+ background-color: #EFEFEF;
74
73
  }
75
74
 
76
75
  /* content */
@@ -37,7 +37,7 @@ const tableRule = (element, parseChild) => {
37
37
  if (nodeName === 'TH' || nodeName === 'TD') {
38
38
  const children = Array.from(childNodes);
39
39
  const cellChildren = children.flatMap(child => {
40
- //Replace paragraph node with text node
40
+ // Replace paragraph node with text node
41
41
  if (child.nodeName === 'P') {
42
42
  const textContent = Array.from(child.childNodes).map(child => child.textContent).join('');
43
43
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {