diff --git a/web/app/(pages)/layout.tsx b/web/app/(pages)/layout.tsx
index c5928be9..3b897096 100644
--- a/web/app/(pages)/layout.tsx
+++ b/web/app/(pages)/layout.tsx
@@ -1,27 +1,25 @@
-"use client"
-
+import type { Viewport } from "next"
import { Sidebar } from "@/components/custom/sidebar/sidebar"
import { CommandPalette } from "@/components/custom/command-palette/command-palette"
-import { useAccountOrGuest } from "@/lib/providers/jazz-provider"
import { LearnAnythingOnboarding } from "@/components/custom/learn-anything-onboarding"
import { Shortcut } from "@/components/custom/Shortcut/shortcut"
import { GlobalKeydownHandler } from "@/components/custom/global-keydown-handler"
-export default function PageLayout({ children }: { children: React.ReactNode }) {
- const { me } = useAccountOrGuest()
+export const viewport: Viewport = {
+ width: "device-width, shrink-to-fit=no",
+ maximumScale: 1,
+ userScalable: false
+}
+export default function PageLayout({ children }: { children: React.ReactNode }) {
return (
- {me._type !== "Anonymous" && (
- <>
-
-
- >
- )}
+
+
diff --git a/web/app/layout.tsx b/web/app/layout.tsx
index c9fd5e6c..871c2b75 100644
--- a/web/app/layout.tsx
+++ b/web/app/layout.tsx
@@ -1,4 +1,4 @@
-import type { Metadata } from "next"
+import type { Metadata, Viewport } from "next"
import { cn } from "@/lib/utils"
import { ThemeProvider } from "@/lib/providers/theme-provider"
import "./globals.css"
@@ -11,6 +11,13 @@ import { GeistMono, GeistSans } from "./fonts"
import { JazzAndAuth } from "@/lib/providers/jazz-provider"
import { TooltipProvider } from "@/components/ui/tooltip"
+export const viewport: Viewport = {
+ width: "device-width",
+ height: "device-height",
+ initialScale: 1,
+ viewportFit: "cover"
+}
+
export const metadata: Metadata = {
title: "Learn Anything",
description: "Organize world's knowledge, explore connections and curate learning paths"
diff --git a/web/components/custom/command-palette/command-palette.tsx b/web/components/custom/command-palette/command-palette.tsx
index 39aad7c9..11feb4dd 100644
--- a/web/components/custom/command-palette/command-palette.tsx
+++ b/web/components/custom/command-palette/command-palette.tsx
@@ -1,10 +1,12 @@
+"use client"
+
import * as React from "react"
import * as DialogPrimitive from "@radix-ui/react-dialog"
import { Command } from "cmdk"
import { Dialog, DialogPortal, DialogHeader, DialogTitle, DialogDescription } from "@/components/ui/dialog"
import { CommandGroup } from "./command-items"
import { CommandAction, CommandItemType, createCommandGroups } from "./command-data"
-import { useAccount } from "@/lib/providers/jazz-provider"
+import { useAccount, useAccountOrGuest } from "@/lib/providers/jazz-provider"
import { searchSafeRegExp } from "@/lib/utils"
import { GraphNode } from "@/components/routes/public/PublicHomeRoute"
import { useCommandActions } from "./hooks/use-command-actions"
@@ -19,6 +21,14 @@ const filterItems = (items: CommandItemType[], searchRegex: RegExp) =>
export const commandPaletteOpenAtom = atom(false)
export function CommandPalette() {
+ const { me } = useAccountOrGuest()
+
+ if (me._type === "Anonymous") return null
+
+ return
+}
+
+export function RealCommandPalette() {
const { me } = useAccount({ root: { personalLinks: [], personalPages: [] } })
const dialogRef = React.useRef(null)
const [inputValue, setInputValue] = React.useState("")