diff --git a/frontend/src/config/siteConfig.tsx b/frontend/src/config/siteConfig.tsx
index 6c442b65..11ee43a6 100644
--- a/frontend/src/config/siteConfig.tsx
+++ b/frontend/src/config/siteConfig.tsx
@@ -2,6 +2,8 @@ import { OperatingSystem } from "@/lib/types";
import { MessagesSquare, Scroll } from "lucide-react";
import { FaDiscord, FaGithub } from "react-icons/fa";
+const isMobile = typeof window !== "undefined" && window.innerWidth < 640;
+
export const basePath = process.env.BASE_PATH;
export const navbarLinks = [
@@ -23,13 +25,13 @@ export const navbarLinks = [
icon: ,
text: "Change Log",
},
- {
+ !isMobile && {
href: `https://github.com/community-scripts/${basePath}/discussions`,
event: "Discussions",
- icon: ,
+ icon: ,
text: "Discussions",
},
-];
+].filter(Boolean);
export const mostPopularScripts = [
"Proxmox VE Post Install",