feat(chat): improve markdown and editor

This commit is contained in:
Tim
2025-09-09 20:03:22 +08:00
parent 20c6c73f8c
commit 61fc9d799d
2 changed files with 36 additions and 3 deletions

View File

@@ -70,7 +70,6 @@ export default {
onMounted(() => {
vditorInstance.value = createVditor(editorId.value, {
placeholder: '输入消息...',
height: 150,
toolbar: [
'emoji',
'bold',
@@ -179,4 +178,10 @@ 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>