fix: user profile avatar + loading spinners + modal opacity

- UserProfile now uses avatar_url (was always default ui-avatars)
- Loading states show spinner-sm spinner instead of plain text
  (Feed, UserProfile, chat, admin panels, custom pages)
- Modal background: semi-transparent glass (0.85 light / 0.88 dark)
This commit is contained in:
lezi-fun committed 2026-08-11 10:23:40 +08:00
1 parent a136d468af
commit 1dbcb89fbd
10 files changed
+30 -11

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ export default function ChatWindow({ conversationId, otherUserId, otherUsername,
</div>
<div id="chatMessages" ref={containerRef} style={{ flex: 1, overflowY: 'auto', padding: 16, minHeight: 0 }}>
{messages === null ? (
<div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}>加载中...</div>
<div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}><span className="spinner-sm" />加载中...</div>
) : messages.length === 0 ? (
<div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}>还没有消息,打个招呼吧 👋</div>
) : (