Skip to content

Make banner visible on mobile #7821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/components/SocialBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ export default function SocialBanner() {
<div
ref={ref}
className={cn(
`h-[40px] hidden lg:flex w-full bg-gray-100 dark:bg-gray-700 text-base md:text-lg py-2 sm:py-0 items-center justify-center flex-col sm:flex-row z-[100]`
`h-[40px] flex w-full bg-gray-100 dark:bg-gray-700 text-base md:text-lg py-2 items-center justify-center flex-col flex-row z-[100]`
)}>
<div className="hidden sm:block">{bannerText}</div>
<ExternalLink
className="ms-0 sm:ms-1 text-link dark:text-link-dark hover:underline"
href={bannerLink}>
{bannerLinkText}
</ExternalLink>
<div className="block">
{bannerText}
<ExternalLink
className="ms-1 text-link dark:text-link-dark hover:underline"
href={bannerLink}>
{bannerLinkText}
</ExternalLink>
</div>
</div>
);
}