From 1535577eac2946533ee0c021410320f96e27ba45 Mon Sep 17 00:00:00 2001 From: freefire Date: Fri, 18 Sep 2026 00:28:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E5=85=A8=E7=AB=99=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E6=B0=9B=E5=9B=B4=E5=B1=82=E3=80=81=E4=BE=A7=E6=A0=8F?= =?UTF-8?q?=20sticky=20=E5=AF=B9=E9=BD=90=E4=B8=8E=E9=95=BF=E9=A1=B5?= =?UTF-8?q?=E5=9B=9E=E9=A1=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用顶栏/主栏高度令牌消除 sticky 首滚空走,面包屑叠到中栏上方,公开页增加回顶浮钮。 Co-authored-by: Cursor --- frontend/app/admin/layout.tsx | 1 - frontend/app/announcement/[id]/page.tsx | 17 +-- frontend/app/announcements/page.tsx | 15 +-- frontend/app/compose/page.tsx | 2 +- frontend/app/globals.css | 117 +++++++++++++++++- frontend/app/notifications/page.tsx | 2 +- frontend/app/p/[slug]/page.tsx | 17 +-- frontend/app/page.tsx | 15 ++- frontend/app/points/PointsClient.tsx | 2 +- frontend/app/post/[id]/edit/page.tsx | 2 +- frontend/app/post/[id]/page.tsx | 23 ++-- frontend/app/u/[id]/page.tsx | 6 +- frontend/components/BackToTop.tsx | 39 ++++++ frontend/components/Header.tsx | 2 +- frontend/components/MobilePostBar.tsx | 33 +---- frontend/components/SiteChrome.tsx | 20 ++- frontend/components/home/BoardPanels.tsx | 32 ++--- frontend/components/home/CommunityPanels.tsx | 7 +- frontend/components/home/WorkspaceNav.tsx | 8 +- .../components/site-doc/SiteDocBreadcrumb.tsx | 25 ++-- frontend/components/site-doc/SiteDocShell.tsx | 12 +- 21 files changed, 286 insertions(+), 111 deletions(-) create mode 100644 frontend/components/BackToTop.tsx diff --git a/frontend/app/admin/layout.tsx b/frontend/app/admin/layout.tsx index b0d7e78..3bda987 100644 --- a/frontend/app/admin/layout.tsx +++ b/frontend/app/admin/layout.tsx @@ -28,7 +28,6 @@ export default async function AdminLayout({ children }: { children: React.ReactN id="main" tabIndex={-1} className="min-h-screen flex items-center justify-center px-4 outline-none" - style={{ background: "var(--bg)" }} >
+ } mobileExtras={ <> {toc.length > 0 ? : null} @@ -111,14 +120,6 @@ export default async function AnnouncementPage({ params }: PageProps) { } > - -
+ } mobileExtras={} > - -

-