Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Mobile menu link clicking

Richie McIlroyd46cc47925bf
diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsx
index a468696c6..546c5fd6b 100644
--- a/apps/web/components/Navbar.tsx
+++ b/apps/web/components/Navbar.tsx
@@ -147,20 +147,38 @@ export const Navbar = ({ auth }: { auth: boolean }) => {
</button>
</div>
<div className="pb-12">
- <nav className="mobile">
+ <nav className="mobile relative">
<ul className="p-0 space-y-10">
<li>
- <Link href="/pricing" passHref>
+ <Link
+ onClick={() => {
+ setShowMobileMenu(false);
+ }}
+ href="/pricing"
+ passHref
+ >
Pricing
</Link>
</li>
<li>
- <Link href="/download" passHref>
+ <Link
+ onClick={() => {
+ setShowMobileMenu(false);
+ }}
+ href="/download"
+ passHref
+ >
Download
</Link>
</li>
<li>
- <Link href="/login" passHref>
+ <Link
+ onClick={() => {
+ setShowMobileMenu(false);
+ }}
+ href="/login"
+ passHref
+ >
Get started
</Link>
</li>
diff --git a/apps/web/components/pages/PricingPage.tsx b/apps/web/components/pages/PricingPage.tsx
index 8c0b47965..688f4f505 100644
--- a/apps/web/components/pages/PricingPage.tsx
+++ b/apps/web/components/pages/PricingPage.tsx
@@ -146,7 +146,7 @@ export const PricingPage = () => {
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 items-stretch">
<Card
- className={`bg-gradient-to-l from-primary to-primary-3 p-8 rounded-xl min-h-[600px] flex-grow border-primary-3 ${
+ className={`bg-gradient-to-l from-primary to-primary-3 p-3 md:p-8 rounded-xl min-h-[600px] flex-grow border-primary-3 ${
loading === false && "fade-in-up animate-delay-2"
}`}
>
@@ -232,7 +232,7 @@ export const PricingPage = () => {
</div>
</Card>
<Card
- className={`bg-white p-8 rounded-xl min-h-[600px] flex-grow ${
+ className={`bg-white p-3 md:p-8 rounded-xl min-h-[600px] flex-grow ${
loading === false && "fade-in-down animate-delay-2"
}`}
>