@seafile/sdoc-editor 1.0.185 → 1.0.186

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.
@@ -7,6 +7,7 @@
7
7
  position: absolute;
8
8
  background-color: #ffff;
9
9
  max-height: 300px;
10
+ max-width: 200px;
10
11
  overflow: auto;
11
12
  padding: 8px 0px;
12
13
  }
@@ -36,7 +36,7 @@ const SeaTableList = _ref => {
36
36
  }, tables.map(item => {
37
37
  return /*#__PURE__*/_react.default.createElement("div", {
38
38
  key: item._id,
39
- className: "sdoc-dropdown-menu-item",
39
+ className: "sdoc-dropdown-menu-item text-truncate d-block",
40
40
  onClick: () => onViewClick(item)
41
41
  }, item.name);
42
42
  }));
@@ -38,6 +38,17 @@
38
38
 
39
39
  .sdoc-seatable-hover-menu-container .sdoc-seatable-hover-operation-item.sdoc-seatable-hover-operation-lang .op-item {
40
40
  padding: 0 5px;
41
+ display: inline-flex;
42
+ vertical-align: 2px;
43
+ }
44
+
45
+ .sdoc-seatable-hover-menu-container .sdoc-seatable-hover-operation-item.sdoc-seatable-hover-operation-lang .op-item span {
46
+ max-width: 100px;
47
+ overflow: hidden;
48
+ text-overflow: ellipsis;
49
+ white-space: nowrap;
50
+ display: inline-block;
51
+ height: 20px;
41
52
  }
42
53
 
43
54
  .sdoc-seatable-hover-menu-container .hover-menu-container .sdoc-seatable-hover-operation-lang .icon-font {
@@ -145,11 +156,11 @@
145
156
  }
146
157
 
147
158
  .sdoc-seatable-hover-menu-container .hover-menu-container .sdoc-seatable-setting-popover .seatable-setting-container .seatable-setting-item:hover {
148
- background-color: #f5f5f5;;
159
+ background-color: #f5f5f5;
149
160
  }
150
161
 
151
162
  .sdoc-seatable-hover-menu-container .hover-menu-container .sdoc-seatable-setting-popover .seatable-setting-container .seatable-setting-item .active {
152
- background-color: #f5f5f5;;
163
+ background-color: #f5f5f5;
153
164
  }
154
165
 
155
166
  .sdoc-seatable-hover-menu-container .hover-menu-container .sdoc-seatable-setting-popover .seatable-setting-container .seatable-setting-item .check-mark {
@@ -42,7 +42,9 @@ const TablesList = _ref => {
42
42
  onClick: () => {
43
43
  onSelectTable(item);
44
44
  }
45
- }, item.name, /*#__PURE__*/_react.default.createElement("span", {
45
+ }, /*#__PURE__*/_react.default.createElement("span", {
46
+ className: "text-truncate"
47
+ }, item.name), /*#__PURE__*/_react.default.createElement("span", {
46
48
  className: `check-mark ${selectedTableText === item.name ? 'checked' : ''}`
47
49
  }, /*#__PURE__*/_react.default.createElement("i", {
48
50
  className: "sdocfont sdoc-check-mark icon-font"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.185",
3
+ "version": "1.0.186",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",