mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 17:43:55 +08:00
update: 优化文本溢出悬浮窗样式
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="device-item">
|
<div class="device-item">
|
||||||
<div style="display: flex;justify-content: space-between;">
|
<div style="display: flex;justify-content: space-between;">
|
||||||
<div style="font-weight: 700;font-size: 18px;text-align: left;color: #3d4566;">
|
<el-tooltip :content="device.agentName" placement="top" effect="light">
|
||||||
|
<div class="device-item-title">
|
||||||
{{ device.agentName }}
|
{{ device.agentName }}
|
||||||
</div>
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
<div>
|
<div>
|
||||||
<img src="@/assets/home/delete.png" alt="" style="width: 18px;height: 18px;margin-right: 10px;"
|
<img src="@/assets/home/delete.png" alt="" style="width: 18px;height: 18px;margin-right: 10px;"
|
||||||
@click.stop="handleDelete" />
|
@click.stop="handleDelete" />
|
||||||
<el-tooltip class="item" effect="dark" :content="device.systemPrompt" placement="top"
|
<el-tooltip class="item" effect="light" :content="device.systemPrompt" placement="top"
|
||||||
popper-class="custom-tooltip">
|
popper-class="custom-tooltip">
|
||||||
<img src="@/assets/home/info.png" alt="" style="width: 18px;height: 18px;" />
|
<img src="@/assets/home/info.png" alt="" style="width: 18px;height: 18px;" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
@@ -140,6 +142,16 @@ export default {
|
|||||||
background: #fafcfe;
|
background: #fafcfe;
|
||||||
padding: 22px 22px 14px;
|
padding: 22px 22px 14px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
&-title {
|
||||||
|
flex: 1;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #3d4566;
|
||||||
|
text-align: left;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.device-name {
|
.device-name {
|
||||||
|
|||||||
@@ -20,3 +20,13 @@ select:-webkit-autofill:focus {
|
|||||||
.el-icon-video-play, .el-icon-video-pause {
|
.el-icon-video-play, .el-icon-video-pause {
|
||||||
font-size: 18px !important;
|
font-size: 18px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.is-light {
|
||||||
|
border: 1px solid #e4e7ed !important;
|
||||||
|
color: #595959;
|
||||||
|
font-size: 14px;
|
||||||
|
background: #fafcfe !important;
|
||||||
|
.popper__arrow {
|
||||||
|
border-top-color: #e4e7ed !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
v-model="inputValue"
|
v-model="inputValue"
|
||||||
ref="saveTagInput"
|
ref="saveTagInput"
|
||||||
size="small"
|
size="small"
|
||||||
maxLength="100"
|
maxLength="64"
|
||||||
@keyup.enter.native="handleInputConfirm"
|
@keyup.enter.native="handleInputConfirm"
|
||||||
@blur="handleInputConfirm"
|
@blur="handleInputConfirm"
|
||||||
>
|
>
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-model="form.agentName"
|
v-model="form.agentName"
|
||||||
class="form-input"
|
class="form-input"
|
||||||
maxlength="10"
|
maxlength="64"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('roleConfig.roleTemplate') + ':'">
|
<el-form-item :label="$t('roleConfig.roleTemplate') + ':'">
|
||||||
@@ -387,7 +387,6 @@ export default {
|
|||||||
asr: false, // 语音识别功能状态
|
asr: false, // 语音识别功能状态
|
||||||
},
|
},
|
||||||
dynamicTags: [],
|
dynamicTags: [],
|
||||||
maxVisibleTags: 5,
|
|
||||||
inputVisible: false,
|
inputVisible: false,
|
||||||
inputValue: ''
|
inputValue: ''
|
||||||
};
|
};
|
||||||
@@ -471,6 +470,7 @@ export default {
|
|||||||
intentModelId: "",
|
intentModelId: "",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
this.dynamicTags = [];
|
||||||
this.currentFunctions = [];
|
this.currentFunctions = [];
|
||||||
this.$message.success({
|
this.$message.success({
|
||||||
message: i18n.t("roleConfig.resetSuccess"),
|
message: i18n.t("roleConfig.resetSuccess"),
|
||||||
@@ -1531,5 +1531,8 @@ export default {
|
|||||||
}
|
}
|
||||||
.input-new-tag {
|
.input-new-tag {
|
||||||
width: 90px;
|
width: 90px;
|
||||||
|
&::v-deep(.el-input__inner) {
|
||||||
|
width: 90px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user