From 372116ca80a4664206c6b9024e2badd026db349a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Thu, 5 Jan 2023 10:52:33 +0100 Subject: [PATCH] fix: align sizes of icons in footer --- src/components/atoms/Footer.tsx | 12 ++++++++++-- src/components/organisms/Layout.tsx | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/atoms/Footer.tsx b/src/components/atoms/Footer.tsx index c682cd8..dfcd460 100644 --- a/src/components/atoms/Footer.tsx +++ b/src/components/atoms/Footer.tsx @@ -1,16 +1,19 @@ import * as React from "react" import { ReactNode } from "react" import { Box, useTheme } from "@mui/material" +import styled from "@emotion/styled" export type FooterProps = { + className?: string children: ReactNode } -export const Footer = ({ children }: FooterProps) => { +export const Footer = styled(({ className, children }: FooterProps) => { const theme = useTheme() return ( { {children} ) -} +})` + > a { + display: flex; + align-items: center; + } +` diff --git a/src/components/organisms/Layout.tsx b/src/components/organisms/Layout.tsx index 3c31b74..9c6e875 100644 --- a/src/components/organisms/Layout.tsx +++ b/src/components/organisms/Layout.tsx @@ -76,7 +76,7 @@ const Layout = ({ pageTitle, preTitle, children }: LayoutProps) => {