diff --git a/src/interface/web/app/agents/page.tsx b/src/interface/web/app/agents/page.tsx index 4a6c7619..58abe7fa 100644 --- a/src/interface/web/app/agents/page.tsx +++ b/src/interface/web/app/agents/page.tsx @@ -143,6 +143,7 @@ function CreateAgentCard(props: CreateAgentCardProps) { )} )} diff --git a/src/interface/web/app/automations/page.tsx b/src/interface/web/app/automations/page.tsx index 0ecf5809..0de15471 100644 --- a/src/interface/web/app/automations/page.tsx +++ b/src/interface/web/app/automations/page.tsx @@ -1064,6 +1064,7 @@ export default function Automations() { )} diff --git a/src/interface/web/app/components/agentCard/agentCard.tsx b/src/interface/web/app/components/agentCard/agentCard.tsx index b151f02d..90888b27 100644 --- a/src/interface/web/app/components/agentCard/agentCard.tsx +++ b/src/interface/web/app/components/agentCard/agentCard.tsx @@ -328,6 +328,7 @@ export function AgentCard(props: AgentCardProps) { )} diff --git a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx index 6bc19036..627e8517 100644 --- a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx +++ b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx @@ -408,6 +408,7 @@ export const ChatInputArea = forwardRef((pr {showLoginPrompt && loginRedirectMessage && ( )} diff --git a/src/interface/web/app/components/loginPrompt/loginPrompt.tsx b/src/interface/web/app/components/loginPrompt/loginPrompt.tsx index e6c09ffb..c178c06a 100644 --- a/src/interface/web/app/components/loginPrompt/loginPrompt.tsx +++ b/src/interface/web/app/components/loginPrompt/loginPrompt.tsx @@ -23,6 +23,7 @@ import Link from "next/link"; import { useEffect, useState } from "react"; import useSWR from "swr"; import { GoogleSignIn } from "./GoogleSignIn"; +import { Drawer, DrawerContent } from "@/components/ui/drawer"; export interface LoginPromptProps { loginRedirectMessage: string; @@ -143,19 +144,50 @@ export default function LoginPrompt(props: LoginPromptProps) { }); } + if (props.isMobileWidth) { + return ( + + +
+ {useEmailSignIn && ( + + )} + {!useEmailSignIn && ( + + )} +
+
+
+ ); + } + return (
- {/* - Sign in to Khoj to continue - - - {props.loginRedirectMessage}. - */} - {useEmailSignIn && ( { if (localStorage.getItem("theme") === "dark") { @@ -87,6 +90,13 @@ export default function NavMenu() { return (
+ {showLoginPrompt && ( + + )} {isMobileWidth ? ( @@ -197,12 +207,16 @@ export default function NavMenu() { ) : ( - -
+ )} @@ -323,12 +337,16 @@ export default function NavMenu() { ) : ( - -
+ )} diff --git a/src/interface/web/app/page.tsx b/src/interface/web/app/page.tsx index ba498491..d503e6a1 100644 --- a/src/interface/web/app/page.tsx +++ b/src/interface/web/app/page.tsx @@ -217,6 +217,7 @@ function ChatBodyData(props: ChatBodyDataProps) { {showLoginPrompt && ( )}