fix: smooth pinned and loading animations

This commit is contained in:
lezi-fun committed 2026-08-12 09:14:55 +08:00
1 parent b9d6ca5da8
commit 3b4b598ce5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ export default function Feed({ onOpenModal, onReport }) {
<div key={p.id} className="post-card" data-post-id={p.id} style={{ cursor: 'pointer' }}
onClick={(e) => openPost(p.id, e.currentTarget, p)}>
{p.is_pinned && (
<div className="post-pin-state" style={{ fontSize: 12, color: 'var(--primary)', fontWeight: 600, marginBottom: 4 }}><Icon name="pin" size={12} /> {t('feed.pinned')}</div>
<div className="post-pin-state" style={{ width: 'fit-content', display: 'flex', alignItems: 'center', gap: 3, fontSize: 12, color: 'var(--primary)', fontWeight: 600, marginBottom: 4 }}><Icon name="pin" size={12} /> {t('feed.pinned')}</div>
)}
<div className="post-header">
<img src={p.avatar_url || avatar(p.username)} className="post-avatar" alt="" />
+1 -1
View File
@@ -9,7 +9,7 @@ export default function LoadingScreen({ forumName, forumNameLoaded }) {
<div className="loading-screen">
<div className="loading-inner">
<div className="loading-spinner" />
<div className="loading-title loading-title-appear" id="loadingTitle" suppressHydrationWarning>
<div className={'loading-title' + (forumNameLoaded ? ' loading-title-appear' : '')} id="loadingTitle" suppressHydrationWarning>
{forumNameLoaded && forumName}
</div>
<div className="loading-sub">加载中...</div>