fix(widgets): stabilize user card layout
This commit is contained in:
1 parent
15b4c818c5
commit
246084648f
4 files changed
+176
-48
No files matched your search
@@ -119,9 +119,12 @@
|
||||
btn.disabled = true;
|
||||
btn.setAttribute('disabled', 'disabled');
|
||||
// Keep existing structure so CSS layout (.but.block flex) is not lost.
|
||||
var signedLabel = btn.classList.contains('aksrt-header-checkin--compact')
|
||||
? '已签到'
|
||||
: '今日已签到';
|
||||
btn.innerHTML =
|
||||
'<i class="fas fa-calendar-check" aria-hidden="true"></i>' +
|
||||
'<span>今日已签到</span>';
|
||||
'<span>' + signedLabel + '</span>';
|
||||
})
|
||||
.catch(function () {
|
||||
toast('网络错误', 'danger');
|
||||
|
||||
Reference in new issue
Block a user