mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-07 13:18:16 +00:00
perf: 优化机器人回复
This commit is contained in:
parent
985c5ff54b
commit
ae83fce524
2
resources/assets/js/store/markdown.js
vendored
2
resources/assets/js/store/markdown.js
vendored
@ -25,7 +25,7 @@ const MarkdownUtils = {
|
|||||||
|
|
||||||
export function MarkdownConver(text) {
|
export function MarkdownConver(text) {
|
||||||
if (text === '...') {
|
if (text === '...') {
|
||||||
return '<p><span class="input-blink"></span> </p>'
|
return '<div class="input-blink"></div>'
|
||||||
}
|
}
|
||||||
if (MarkdownUtils.mdi === null) {
|
if (MarkdownUtils.mdi === null) {
|
||||||
MarkdownUtils.mdi = new MarkdownIt({
|
MarkdownUtils.mdi = new MarkdownIt({
|
||||||
|
|||||||
@ -74,14 +74,19 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input-blink {
|
.input-blink {
|
||||||
position: absolute;
|
width: 10px;
|
||||||
content: '';
|
height: 20px;
|
||||||
display: inline-block;
|
position: relative;
|
||||||
width: 2px;
|
&:before {
|
||||||
height: 16px;
|
position: absolute;
|
||||||
top: 50%;
|
content: '';
|
||||||
transform: translateY(-50%);
|
display: inline-block;
|
||||||
animation: blink-animate 1.2s infinite steps(1, start);
|
width: 2px;
|
||||||
|
height: 16px;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
animation: blink-animate 1.2s infinite steps(1, start);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -578,7 +578,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item-leave {
|
.item-leave {
|
||||||
pre, code {
|
pre,
|
||||||
|
code,
|
||||||
|
.markdown-body {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -774,6 +776,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body {
|
.markdown-body {
|
||||||
|
min-height: 20px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user