mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-31 15:07:47 +08:00
fix: 聊天UI优化 #957
This commit is contained in:
@@ -239,8 +239,16 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.info-content-text img {
|
.info-content-text img {
|
||||||
max-width: 100%;
|
max-width: 400px;
|
||||||
|
max-height: 600px;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 4px 12px 48px 0 rgba(0, 0, 0, 0.11);
|
||||||
|
transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-content-text img:hover {
|
||||||
|
box-shadow: 4px 12px 48px 0 rgba(0, 0, 0, 0.35);
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-content-text table {
|
.info-content-text table {
|
||||||
|
|||||||
@@ -70,22 +70,6 @@ export default {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
vditorInstance.value = createVditor(editorId.value, {
|
vditorInstance.value = createVditor(editorId.value, {
|
||||||
placeholder: '输入消息...',
|
placeholder: '输入消息...',
|
||||||
toolbar: [
|
|
||||||
'emoji',
|
|
||||||
'bold',
|
|
||||||
'italic',
|
|
||||||
'strike',
|
|
||||||
'link',
|
|
||||||
'|',
|
|
||||||
'list',
|
|
||||||
'|',
|
|
||||||
'line',
|
|
||||||
'quote',
|
|
||||||
'code',
|
|
||||||
'inline-code',
|
|
||||||
'|',
|
|
||||||
'upload',
|
|
||||||
],
|
|
||||||
preview: {
|
preview: {
|
||||||
actions: [],
|
actions: [],
|
||||||
markdown: { toc: false },
|
markdown: { toc: false },
|
||||||
@@ -148,11 +132,17 @@ export default {
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vditor {
|
||||||
|
min-height: 50px;
|
||||||
|
max-height: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
.message-bottom-container {
|
.message-bottom-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
padding: 10px;
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
background-color: var(--bg-color-soft);
|
background-color: var(--bg-color-soft);
|
||||||
border-top: 1px solid var(--border-color);
|
border-top: 1px solid var(--border-color);
|
||||||
border-bottom-left-radius: 8px;
|
border-bottom-left-radius: 8px;
|
||||||
@@ -178,10 +168,4 @@ export default {
|
|||||||
.message-submit:not(.disabled):hover {
|
.message-submit:not(.disabled):hover {
|
||||||
background-color: var(--primary-color-hover);
|
background-color: var(--primary-color-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-editor-container .vditor {
|
|
||||||
min-height: 80px;
|
|
||||||
max-height: 150px;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -703,13 +703,6 @@ function goBack() {
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-content-text img,
|
|
||||||
.reply-content img {
|
|
||||||
max-width: 600px;
|
|
||||||
width: 100%;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reply-btn {
|
.reply-btn {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
|||||||
Reference in New Issue
Block a user