Commit f31e29d
committed
refactor(prompt-editor): 优化多行方法链调用
- 将 setContent 与 setTextSelection 链式调用合并,提升代码可读性
- 调整 CSS 中 transition 属性为多行更易维护格式
- 合并移动端 CSS 中的 radial-gradient 以简化样式定义
- 新增测试以验证 PromptEditorProvider 中的 Tab 填充行为
Change-Id: If3c41d498ba21ee4b63148d41586c3dbde24f675
Co-developed-by: Qoder <noreply@qoder.com>1 parent caafdbc commit f31e29d
4 files changed
Lines changed: 18 additions & 13 deletions
File tree
- apps/webui
- src
- app
- components/prompt-editor
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5102 | 5102 | | |
5103 | 5103 | | |
5104 | 5104 | | |
5105 | | - | |
| 5105 | + | |
| 5106 | + | |
| 5107 | + | |
5106 | 5108 | | |
5107 | 5109 | | |
5108 | 5110 | | |
| |||
5129 | 5131 | | |
5130 | 5132 | | |
5131 | 5133 | | |
5132 | | - | |
| 5134 | + | |
| 5135 | + | |
| 5136 | + | |
5133 | 5137 | | |
5134 | 5138 | | |
5135 | 5139 | | |
| |||
5163 | 5167 | | |
5164 | 5168 | | |
5165 | 5169 | | |
5166 | | - | |
| 5170 | + | |
| 5171 | + | |
| 5172 | + | |
5167 | 5173 | | |
5168 | 5174 | | |
5169 | 5175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
| 290 | + | |
299 | 291 | | |
300 | 292 | | |
301 | 293 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments