fix: 修复工作流节点输入框光标错位
- 同步参数编辑器高亮层与真实输入层的内边距 - 调整多行换行规则,避免文本与光标在行尾错位
This commit is contained in:
@@ -561,6 +561,9 @@
|
|||||||
font-weight: inherit;
|
font-weight: inherit;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
letter-spacing: inherit;
|
letter-spacing: inherit;
|
||||||
|
--param-token-padding-y: 5px;
|
||||||
|
--param-token-padding-left: 8px;
|
||||||
|
--param-token-padding-right: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.param-token-editor-highlight {
|
.param-token-editor-highlight {
|
||||||
@@ -568,7 +571,8 @@
|
|||||||
inset: 0;
|
inset: 0;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 5px 8px;
|
padding: var(--param-token-padding-y) var(--param-token-padding-right) var(--param-token-padding-y)
|
||||||
|
var(--param-token-padding-left);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
color: var(--tf-text-primary);
|
color: var(--tf-text-primary);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
@@ -578,6 +582,7 @@
|
|||||||
font-weight: inherit;
|
font-weight: inherit;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
letter-spacing: inherit;
|
letter-spacing: inherit;
|
||||||
|
overflow-wrap: break-word;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -588,7 +593,7 @@
|
|||||||
|
|
||||||
.param-token-editor-highlight.multi-line {
|
.param-token-editor-highlight.multi-line {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-break: break-word;
|
word-break: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.param-token-input,
|
.param-token-input,
|
||||||
@@ -599,12 +604,14 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
color: transparent;
|
color: transparent;
|
||||||
caret-color: var(--tf-text-primary);
|
caret-color: var(--tf-text-primary);
|
||||||
padding-right: 36px;
|
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
font-weight: inherit;
|
font-weight: inherit;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
letter-spacing: inherit;
|
letter-spacing: inherit;
|
||||||
|
padding: var(--param-token-padding-y) var(--param-token-padding-right) var(--param-token-padding-y)
|
||||||
|
var(--param-token-padding-left);
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.param-token-input::placeholder,
|
.param-token-input::placeholder,
|
||||||
|
|||||||
Reference in New Issue
Block a user