From 698029f509681bd22fbaf786d9e2d28fd5be28af Mon Sep 17 00:00:00 2001 From: PrinOrange Date: Sat, 6 Jan 2024 14:06:49 +0800 Subject: [PATCH] Fix some responsive layout bugs --- components/layouts/layouts.tsx | 2 +- components/readerpage/DrawerTOC.tsx | 4 ++-- components/readerpage/TOC.tsx | 6 ++++-- components/utils/NavBar.tsx | 2 +- pages/404.tsx | 2 +- pages/about.tsx | 4 ++-- pages/blog/[id].tsx | 2 +- pages/friends.tsx | 4 ++-- pages/index.tsx | 2 +- pages/posts/[[...slug]].tsx | 2 +- pages/search.tsx | 4 ++-- pages/sponsor.tsx | 4 ++-- pages/tags/[...slug].tsx | 2 +- pages/tags/index.tsx | 2 +- styles/globals.css | 1 - styles/layout.css | 3 --- 16 files changed, 22 insertions(+), 24 deletions(-) delete mode 100644 styles/layout.css diff --git a/components/layouts/layouts.tsx b/components/layouts/layouts.tsx index 2af8fcd..8e6351f 100644 --- a/components/layouts/layouts.tsx +++ b/components/layouts/layouts.tsx @@ -3,5 +3,5 @@ export const Page = ({ children }: { children: React.ReactNode }) => { }; export const ContentContainer = ({ children }: { children: React.ReactNode }) => { - return
{children}
; + return
{children}
; }; diff --git a/components/readerpage/DrawerTOC.tsx b/components/readerpage/DrawerTOC.tsx index b0c469a..5e3f117 100644 --- a/components/readerpage/DrawerTOC.tsx +++ b/components/readerpage/DrawerTOC.tsx @@ -12,7 +12,7 @@ export const DrawerTOC = (props: { data: TTOCItem[] }) => { title="Open the table of contents" className="bottom-7 right-4 fixed bg-white dark:bg-black border-gray-700 border dark:border-gray-500 shadow-xl" > -
setIsTOCOpen(!isTOCOpen)} className="p-3 font-bold"> +
setIsTOCOpen(!isTOCOpen)} className="p-2 font-bold"> {"TOC"}
@@ -20,7 +20,7 @@ export const DrawerTOC = (props: { data: TTOCItem[] }) => { {"TABLE OF CONTENTS"} -