Fix edit message style (#105)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
907ee2796f
commit
895f93d636
3 files changed
+12
-20
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "fix edit message",
|
||||||
|
"packageName": "@acedatacloud/nexior",
|
||||||
|
"email": "office@acedata.cloud",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
||||||
@@ -48,13 +48,12 @@
|
|||||||
@keydown.enter.exact.prevent="sendEdit"
|
@keydown.enter.exact.prevent="sendEdit"
|
||||||
></el-input>
|
></el-input>
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
<el-button size="small" class="cancel-button" @click="cancelEdit">取消</el-button>
|
<el-button size="small" round @click="cancelEdit">{{ $t('common.button.cancel') }}</el-button>
|
||||||
<el-button type="primary" size="small" class="send-button" @click="sendEdit">发送</el-button>
|
<el-button type="primary" size="small" round @click="sendEdit">{{ $t('common.button.confirm') }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<answering-mark v-if="message.state === messageState.PENDING" />
|
<answering-mark v-if="message.state === messageState.PENDING" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="operations">
|
<div class="operations">
|
||||||
<copy-to-clipboard v-if="!Array.isArray(message.content)" :content="message.content!" class="btn-copy" />
|
<copy-to-clipboard v-if="!Array.isArray(message.content)" :content="message.content!" class="btn-copy" />
|
||||||
</div>
|
</div>
|
||||||
@@ -270,6 +269,7 @@ export default defineComponent({
|
|||||||
// background-color: var(--el-bg-color-page);
|
// background-color: var(--el-bg-color-page);
|
||||||
// color: var(--el-text-color-primary);
|
// color: var(--el-text-color-primary);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
min-width: 400px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
.chat-input {
|
.chat-input {
|
||||||
@@ -282,23 +282,6 @@ export default defineComponent({
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
.cancel-button {
|
|
||||||
// background-color: #333;
|
|
||||||
// color: white;
|
|
||||||
background-color: var(--el-bg-color-page);
|
|
||||||
color: var(--el-text-color-primary);
|
|
||||||
border-radius: 20px;
|
|
||||||
// border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.send-button {
|
|
||||||
// background-color: white;
|
|
||||||
// color: black;
|
|
||||||
background-color: var(--el-bg-color-page);
|
|
||||||
color: var(--el-text-color-primary);
|
|
||||||
border-radius: 20px;
|
|
||||||
// border: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,6 +196,7 @@ export default defineComponent({
|
|||||||
id: conversationId,
|
id: conversationId,
|
||||||
messages: this.messages
|
messages: this.messages
|
||||||
});
|
});
|
||||||
|
console.debug('finished update conversation', this.messages);
|
||||||
// 3. Send edited questions
|
// 3. Send edited questions
|
||||||
|
|
||||||
this.messages.push({
|
this.messages.push({
|
||||||
@@ -282,6 +283,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
// Get answers to questions
|
// Get answers to questions
|
||||||
async onFetchAnswer() {
|
async onFetchAnswer() {
|
||||||
|
console.debug('start to get answer', this.messages);
|
||||||
const token = this.credential?.token;
|
const token = this.credential?.token;
|
||||||
const question = this.question;
|
const question = this.question;
|
||||||
const references = this.references;
|
const references = this.references;
|
||||||
|
|||||||
Reference in new issue
Block a user