From 5cc1abf114e5b21650f3ade4ca876064a877d82d Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Thu, 6 Jun 2024 18:41:22 +0530 Subject: [PATCH] Fix footer alignment in search page --- src/theme/Footer/index.tsx | 28 +++++++------- src/theme/Layout/Provider/index.js | 21 ++++++++++ src/theme/Layout/index.js | 53 ++++++++++++++++++++++++++ src/theme/Layout/styles.module.css | 21 ++++++++++ src/theme/SearchBar/FilterDropdown.js | 4 ++ src/theme/SearchPage/index.js | 50 +++++++++++++++--------- src/theme/SearchPage/styles.module.css | 6 +++ 7 files changed, 150 insertions(+), 33 deletions(-) create mode 100644 src/theme/Layout/Provider/index.js create mode 100644 src/theme/Layout/index.js create mode 100644 src/theme/Layout/styles.module.css diff --git a/src/theme/Footer/index.tsx b/src/theme/Footer/index.tsx index 13983775d9d..a8edba90f4d 100644 --- a/src/theme/Footer/index.tsx +++ b/src/theme/Footer/index.tsx @@ -1,22 +1,20 @@ -/** - * SWIZZLED VERSION: 2.0.0-rc.1 - * REASONS: - * - The socials bar needed full width, so needed to be placed outside the default container. - */ - import React from 'react'; import Footer from '@theme-original/Footer'; -import type FooterType from '@theme/Footer'; -import type { WrapperProps } from '@docusaurus/types'; import Social from '@site/src/components/Social'; -type Props = WrapperProps; +type FooterProps = { + footerStyleProps?: React.CSSProperties; +}; -export default function FooterWrapper(props: Props): JSX.Element { +const FooterWrapper = ({ footerStyleProps }: FooterProps) => { return ( - <> -