fix(widgets): stabilize user card layout

This commit is contained in:
kate522 committed 2026-08-14 21:15:47 +08:00
1 parent 15b4c818c5
commit 246084648f
4 files changed
+176 -48

No files matched your search

+4 -1
View File
@@ -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');