@worktile/theia 2.3.0 → 2.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -130,10 +130,6 @@ $thy-icon-nav-link-margin-right: 5px;
130
130
 
131
131
  .leaf-with-placeholder {
132
132
  background-color: $white;
133
-
134
- &[data-slate-leaf=true] {
135
- width: 12em;;
136
- }
137
133
  }
138
134
  [data-slate-placeholder] {
139
135
  color: initial;
@@ -141,6 +137,9 @@ $thy-icon-nav-link-margin-right: 5px;
141
137
  font-style: initial;
142
138
  text-decoration: initial;
143
139
  background-color: initial;
140
+ overflow: hidden;
141
+ text-overflow: ellipsis;
142
+ white-space: nowrap;
144
143
  }
145
144
 
146
145
  // list: fontSize, li marginLeft, multiDigit li marginLeft
package/styles/typo.scss CHANGED
@@ -220,6 +220,12 @@ $font-size-line-height: 1.5;
220
220
  }
221
221
  }
222
222
 
223
+ // 处理混排时 placeholder 的样式
224
+ .slate-element-paragraph {
225
+ white-space: pre-wrap;
226
+ overflow: hidden;
227
+ }
228
+
223
229
 
224
230
  // 处理相邻图文混排时的布局
225
231
  [layout^="wrap-"] + [layout^="wrap-"] + .slate-block {