解决 code 内部颜色重叠的问题

This commit is contained in:
锦恢 2025-04-18 20:51:00 +08:00
parent b7a4ab8706
commit 698bbf0f84
3 changed files with 48 additions and 4 deletions

View File

@ -124,7 +124,7 @@ a {
}
.openmcp-code-block pre code {
background-color: none !important;
background-color: transparent !important;
}
.openmcp-code-block pre code::-webkit-scrollbar {
@ -133,8 +133,7 @@ a {
}
.tool-arguments .openmcp-code-block pre code {
background: var(--el-fill-color-light);
background: transparent !important;
}
.openmcp-code-block pre code::-webkit-scrollbar-track {

View File

@ -37,6 +37,7 @@
height: inherit;
display: block;
overflow: auto;
background-color: unset !important;
}
.vscode-dark :not(pre)>code[class*=language-],
@ -251,6 +252,7 @@
height: inherit;
display: block;
overflow: auto;
background-color: unset !important;
}
.vscode-light :not(pre)>code[class*=language-],

View File

@ -1,5 +1,5 @@
{
"currentIndex": 1,
"currentIndex": 2,
"tabs": [
{
"name": "交互测试",
@ -143,6 +143,49 @@
"storage": {
"currentResourceName": "greeting"
}
},
{
"name": "交互测试",
"icon": "icon-robot",
"type": "blank",
"componentIndex": 3,
"storage": {
"messages": [],
"settings": {
"modelIndex": 0,
"enableTools": [
{
"name": "add",
"description": "对两个数字进行实数域的加法",
"enabled": true
},
{
"name": "multiply",
"description": "对两个数字进行实数域的乘法运算",
"enabled": true
},
{
"name": "is_even",
"description": "判断一个整数是否为偶数",
"enabled": true
},
{
"name": "capitalize",
"description": "将字符串首字母大写",
"enabled": true
},
{
"name": "get_weather_by_city_code",
"description": "根据城市天气预报的城市编码 (int),获取指定城市的天气信息",
"enabled": true
}
],
"enableWebSearch": false,
"temperature": 0.7,
"contextLength": 10,
"systemPrompt": ""
}
}
}
]
}