fix: replies drawer auto-expand, settings no-scroll, title bug, admin links

- PostDetail: replies open as drawer (grid-rows animation) automatically
  after post loads — no toggle button
- SettingsPage: outer frame overflow hidden (100vh), only inner panel
  scrolls; hide #app layout when not on feed (fixes navbar moving when
  scrolling settings)
- Title: metadata 'Loading...' → 'Forumlify' (Next resets <title> to
  metadata on re-render → title became Loading... after load); unify
  title effect (rotate Loading. only while !ready && !forumNameLoaded)
- AdminLinks: link divider uses var(--border) (was #f1f5f9, invisible
  in dark mode); add admin.link i18n keys
- AdminPage i18n nav labels
This commit is contained in:
lezi-fun committed 2026-08-11 17:35:48 +08:00
1 parent ad89aa3e04
commit 5a9a454ef3
9 files changed
+76 -20

No files matched your search

+5 -4
View File
@@ -204,9 +204,10 @@ export default function AppProvider({ children, cachedName = '' }) {
init();
}, []);
// 页面标题:初始化中轮换 Loading. → Loading.. → Loading...,完成后显示论坛名
// 页面标题:初始化中轮换 Loading. → Loading.. → Loading...,收到论坛名/完成后显示论坛名
useEffect(() => {
if (!ready) {
// 尚未收到论坛名且未完成初始化:轮换 Loading.
if (!ready && !forumNameLoaded) {
const seq = ['Loading.', 'Loading..', 'Loading...'];
let i = 0;
document.title = seq[0];
@@ -218,11 +219,11 @@ export default function AppProvider({ children, cachedName = '' }) {
clearInterval(t);
};
}
// 初始化完成:标题恢复为论坛名
// 已收到论坛名或初始化完成:标题显示论坛名(Next 重置 metadata 时也能恢复)
document.title = forumName;
const titleEl = document.querySelector('title');
if (titleEl) titleEl.textContent = forumName;
}, [ready, forumName]);
}, [ready, forumNameLoaded, forumName]);
// 按 URL 参数初始化视图
useEffect(() => {