no message

This commit is contained in:
Pang 2023-07-28 08:32:09 +08:00
parent 1ea764c860
commit fe4ab6e9d5
4 changed files with 27 additions and 4 deletions

View File

@ -747,8 +747,7 @@ class UsersController extends AbstractController
$builder->whereNull('disable_at');
$builder->where('bot', 0);
}
$builder = $keys['department'] == '0' ? $builder->orderByDesc('userid') : $builder;
$list = $builder->paginate(Base::getPaginate(50, 20));
$list = $builder->orderByDesc('userid')->paginate(Base::getPaginate(50, 20));
//
if ($getCheckinMac) {
$list->transform(function (User $user) use ($getCheckinMac) {

View File

@ -32,7 +32,10 @@ export default {
},
computed: {
html() {
html({text}) {
if (text === '...') {
return '<p class="input-blink">&nbsp;</p>'
}
if (this.mdi === null) {
const {highlightBlock} = this
this.mdi = new MarkdownIt({
@ -49,7 +52,7 @@ export default {
this.mdi.use(mila, {attrs: {target: '_blank', rel: 'noopener'}})
this.mdi.use(mdKatex, {blockClass: 'katexmath-block rounded-md p-[10px]', errorColor: ' #cc0000'})
}
return this.formatMsg(this.mdi.render(this.text))
return this.formatMsg(this.mdi.render(text))
}
},

View File

@ -128,6 +128,12 @@
min-width: calc(100% - 170px);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
&.ql-bubble:not(.ql-disabled) {
a {
white-space: normal;
}
}
.ql-editor {
font-size: 14px;
max-height: 200px;

View File

@ -72,6 +72,11 @@ body {
}
}
}
.input-blink {
width: 3px;
animation: blink-animate 1.2s infinite steps(1,start);
}
}
.self {
@ -79,4 +84,14 @@ body {
color: #ffffff;
}
}
@keyframes blink-animate {
0%,to {
background-color: currentColor
}
50% {
background-color: transparent
}
}
}