fix: 聊天UI优化 #957

This commit is contained in:
tim
2025-09-09 21:02:59 +08:00
parent 61fc9d799d
commit c296e25927
3 changed files with 16 additions and 31 deletions

View File

@@ -70,22 +70,6 @@ export default {
onMounted(() => {
vditorInstance.value = createVditor(editorId.value, {
placeholder: '输入消息...',
toolbar: [
'emoji',
'bold',
'italic',
'strike',
'link',
'|',
'list',
'|',
'line',
'quote',
'code',
'inline-code',
'|',
'upload',
],
preview: {
actions: [],
markdown: { toc: false },
@@ -148,11 +132,17 @@ export default {
border-radius: 8px;
}
.vditor {
min-height: 50px;
max-height: 150px;
}
.message-bottom-container {
display: flex;
flex-direction: row;
justify-content: flex-end;
padding: 10px;
margin-top: 10px;
margin-bottom: 10px;
background-color: var(--bg-color-soft);
border-top: 1px solid var(--border-color);
border-bottom-left-radius: 8px;
@@ -178,10 +168,4 @@ export default {
.message-submit:not(.disabled):hover {
background-color: var(--primary-color-hover);
}
.message-editor-container .vditor {
min-height: 80px;
max-height: 150px;
overflow-y: auto;
}
</style>