From 3742f6cedc0645cb76f4b996012ad13307908288 Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 16 Jun 2023 22:52:18 +0800 Subject: [PATCH] feat: to top Signed-off-by: Innei --- src/components/layout/root/Root.tsx | 5 + src/components/ui/fab/BackToTopFAB.tsx | 28 ++++ src/components/ui/fab/FABContainer.tsx | 146 ++++++++++++++++++ src/components/ui/fab/index.ts | 2 + .../ui/markdown/parsers/mention.tsx | 21 +-- .../root/page-scroll-info-provider.tsx | 3 +- 6 files changed, 195 insertions(+), 10 deletions(-) create mode 100644 src/components/ui/fab/BackToTopFAB.tsx create mode 100644 src/components/ui/fab/FABContainer.tsx create mode 100644 src/components/ui/fab/index.ts diff --git a/src/components/layout/root/Root.tsx b/src/components/layout/root/Root.tsx index ed8b7aefe1..03027e96c8 100644 --- a/src/components/layout/root/Root.tsx +++ b/src/components/layout/root/Root.tsx @@ -1,3 +1,5 @@ +import { BackToTopFAB, FABContainer } from '~/components/ui/fab' + import { Content } from '../content/Content' import { Footer } from '../footer' import { Header } from '../header' @@ -9,6 +11,9 @@ export const Root: Component = ({ children }) => { {children}