Merge branch 'main' into terry-wallet-login
Some checks failed
Deploy Staging (terry-wallet-login) / deploy (push) Failing after 31s

# Conflicts:
#	src/components/messageStream/MessageStream.tsx
This commit is contained in:
TerryM
2026-06-03 14:42:07 +08:00
20 changed files with 410 additions and 19 deletions

View File

@@ -336,7 +336,14 @@ export function PublicLayout() {
});
}
};
const footerInContentFlow = stripLangPrefix(pathname) === "/browse";
// Routes that render a full-bleed asset stream and manage their own inner
// width / padding via `MessageStream`. Both 全部资料 (/browse) and the
// per-category view (/category/<slug>) reuse the same component, so they
// need the same zero outer padding here — otherwise the category page's
// bubbles render narrower than the all-resources page.
const strippedPath = stripLangPrefix(pathname);
const footerInContentFlow =
strippedPath === "/browse" || strippedPath.startsWith("/category/");
// Current page name shown in the header brand slot (falls back to the brand).
const pageTitle = usePageTitle();