fix: loading page logo/name flash, settings name flash, post card radius
- LoadingScreen: remove 🌊 logo; show forum name only after server
responds (fades in place), delayed 650ms before switching to home
- AppProvider: new forumNameLoaded flag; title rotation already handled
- settings API: always returns forum_name (inserts default if missing)
- AdminForumSettings: name input starts empty, fills after fetch
- PostDetail: add id=pagePost so #pagePost .post-detail-card styles
apply (border-radius/shadow were missing)
This commit is contained in:
1 parent
e79c8530e3
commit
34c06c206c
7 files changed
+34
-20
No files matched your search
@@ -1,14 +1,16 @@
|
||||
'use client';
|
||||
|
||||
// 全屏加载页:初始化未完成时显示转圈,加载完成后淡出
|
||||
// 注意:不显示论坛名——初始化时论坛名可能尚未从服务器加载,
|
||||
// 显示默认名会造成"Forumlify 一闪而过"的体验问题。
|
||||
export default function LoadingScreen() {
|
||||
// - 未收到论坛名时:只显示 spinner,不显示名字/图标
|
||||
// - 收到论坛名后:名字在原位置渐渐淡入出现
|
||||
export default function LoadingScreen({ forumName, forumNameLoaded }) {
|
||||
return (
|
||||
<div className="loading-screen">
|
||||
<div className="loading-inner">
|
||||
<div className="loading-logo" aria-hidden="true">🌊</div>
|
||||
<div className="loading-spinner" />
|
||||
{forumNameLoaded && forumName && (
|
||||
<div className="loading-title loading-title-appear">{forumName}</div>
|
||||
)}
|
||||
<div className="loading-sub">加载中...</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user