mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-26 04:50:18 +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) {
|
||||
if (text === '...') {
|
||||
return '<p><span class="input-blink"></span> </p>'
|
||||
return '<div class="input-blink"></div>'
|
||||
}
|
||||
if (MarkdownUtils.mdi === null) {
|
||||
MarkdownUtils.mdi = new MarkdownIt({
|
||||
|
||||
@ -74,14 +74,19 @@ body {
|
||||
}
|
||||
|
||||
.input-blink {
|
||||
position: absolute;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 2px;
|
||||
height: 16px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
animation: blink-animate 1.2s infinite steps(1, start);
|
||||
width: 10px;
|
||||
height: 20px;
|
||||
position: relative;
|
||||
&:before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 2px;
|
||||
height: 16px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
animation: blink-animate 1.2s infinite steps(1, start);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -578,7 +578,9 @@
|
||||
}
|
||||
|
||||
.item-leave {
|
||||
pre, code {
|
||||
pre,
|
||||
code,
|
||||
.markdown-body {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
@ -774,6 +776,7 @@
|
||||
}
|
||||
|
||||
.markdown-body {
|
||||
min-height: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user