fix(data-process): 对齐输出类型控件宽度
This commit is contained in:
@@ -482,7 +482,8 @@ assert.match(generationControlSource, /aria-label="输出类型"/, '输出类型
|
||||
assert.match(generationControlSource, /<think>推理过程<\/think>/, '思维链选项没有说明最终保存格式')
|
||||
assert.match(generationControlSource, /<el-select[\s\S]*?class="output-type-select"[\s\S]*?aria-label="输出类型"/, '输出类型必须使用右侧下拉选择')
|
||||
assert.doesNotMatch(generationControlSource, /class="output-type-options"/, '输出类型不应继续使用横向按钮组')
|
||||
assert.match(generationControlSource, /\.output-type-row\s*\{[\s\S]*?grid-template-columns:\s*minmax\(0, 1fr\) 220px/, '输出类型没有采用左侧说明、右侧下拉布局')
|
||||
assert.match(generationControlSource, /\.output-type-row\s*\{[\s\S]*?grid-template-columns:\s*minmax\(0, 1fr\) 150px/, '输出类型没有与生成数量控件保持一致宽度')
|
||||
assert.match(generationControlSource, /\.output-type-select\s*\{[\s\S]*?width:\s*150px/, '输出类型下拉框宽度没有与生成数量控件对齐')
|
||||
assert.match(generationControlSource, /\.output-type-select[\s\S]*?\.el-select__wrapper[\s\S]*?min-height:\s*44px/, '输出类型下拉框的点击区域不足 44px')
|
||||
assert.match(
|
||||
generationControlSource,
|
||||
|
||||
@@ -334,13 +334,13 @@ function modelMeta(model: ModelItem) {
|
||||
|
||||
.output-type-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 220px;
|
||||
grid-template-columns: minmax(0, 1fr) 150px;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.output-type-select {
|
||||
width: 220px;
|
||||
width: 150px;
|
||||
|
||||
:deep(.el-select__wrapper) {
|
||||
min-height: 44px;
|
||||
|
||||
Reference in New Issue
Block a user