diff --git a/frontend/index.html b/frontend/index.html index 22cc5b0f627..6eb5b43c8a1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -28,6 +28,11 @@ + + + + + @@ -35,4 +40,4 @@ - \ No newline at end of file + diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx index 8a498f0b350..8f4a34bde78 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx @@ -24,6 +24,7 @@ import { import useTextSize from "@/hooks/useTextSize"; import { useTranslation } from "react-i18next"; import Appearance from "@/models/appearance"; +import { isStandalonePWA } from "@/utils/pwa"; export const PROMPT_INPUT_ID = "primary-prompt-input"; export const PROMPT_INPUT_EVENT = "set_prompt_input"; @@ -47,6 +48,7 @@ export default function PromptInput({ const undoStack = useRef([]); const redoStack = useRef([]); const { textSizeClass } = useTextSize(); + const isPWA = isStandalonePWA(); /** * To prevent too many re-renders we remotely listen for updates from the parent @@ -243,7 +245,9 @@ export default function PromptInput({ } return ( -
+
-
+