aboutsummaryrefslogtreecommitdiff
path: root/apps/web/components
diff options
context:
space:
mode:
authorMaheshtheDev <[email protected]>2025-10-06 01:06:32 +0000
committerMaheshtheDev <[email protected]>2025-10-06 01:06:32 +0000
commit0ca737f3643b9ec64b0aa2bae4e62a571667eacf (patch)
treee2402649d1500c7f80ba3d2db8ae28491e4c016a /apps/web/components
parentfeat: url cards as content preview with rich details (#452) (diff)
downloadsupermemory-0ca737f3643b9ec64b0aa2bae4e62a571667eacf.tar.xz
supermemory-0ca737f3643b9ec64b0aa2bae4e62a571667eacf.zip
fix: mobile responsive issues on onboarding (#453)
Diffstat (limited to 'apps/web/components')
-rw-r--r--apps/web/components/chrome-extension-button.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/web/components/chrome-extension-button.tsx b/apps/web/components/chrome-extension-button.tsx
index 2b2ca713..8f2b74c8 100644
--- a/apps/web/components/chrome-extension-button.tsx
+++ b/apps/web/components/chrome-extension-button.tsx
@@ -14,12 +14,14 @@ import { useEffect, useState } from "react"
import { motion } from "framer-motion"
import Image from "next/image"
import { analytics } from "@/lib/analytics"
+import { useIsMobile } from "@hooks/use-mobile"
export function ChromeExtensionButton() {
const [isExtensionInstalled, setIsExtensionInstalled] = useState(false)
const [isChecking, setIsChecking] = useState(true)
const [isDismissed, setIsDismissed] = useState(false)
const [isMinimized, setIsMinimized] = useState(false)
+ const isMobile = useIsMobile()
useEffect(() => {
const dismissed =
@@ -80,8 +82,8 @@ export function ChromeExtensionButton() {
setIsDismissed(true)
}
- // Don't show if extension is installed, checking, or dismissed
- if (isExtensionInstalled || isChecking || isDismissed) {
+ // Don't show if extension is installed, checking, dismissed, or on mobile
+ if (isExtensionInstalled || isChecking || isDismissed || isMobile) {
return null
}