diff --git a/src/pages/index.tsx b/src/pages/index.tsx index bc2d5c77f..130143424 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -38,7 +38,7 @@ const StyledCard = ({ href, title, description }: { href: string; title: string; ); }; -const NewsletterBanner = styled.div<{ isSidebarExpanded: boolean }>` +const NewsletterBanner = styled.div<{ isSidebarExpanded: boolean,deviceType:string }>` background-color: #0072ce; color: white; padding: 8px; @@ -46,7 +46,7 @@ const NewsletterBanner = styled.div<{ isSidebarExpanded: boolean }>` font-size: 14px; position: absolute; top: 0; - left: ${(p) => (p.isSidebarExpanded ? 'var(--sidebar-width-expanded)' : 'var(--sidebar-width-collapsed)')}; + left: ${(p) => p.deviceType === 'mobile' ? 0:(p.isSidebarExpanded ? 'var(--sidebar-width-expanded)' : 'var(--sidebar-width-collapsed)')}; transition: all var(--sidebar-expand-transition-speed); right: 0; @@ -117,7 +117,7 @@ const HomePage: NextPageWithLayout = () => { return (
{visible && ( - + Stay updated!{' '}