From c114eddd4c0abe48c7adfb80bb402d55b2954ed3 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sat, 14 Jun 2025 14:21:00 -0700 Subject: [PATCH] fix(deployed-chat): made the chat mobile friendly --- .../[subdomain]/components/input/input.tsx | 70 ++++++++++++------- 1 file changed, 45 insertions(+), 25 deletions(-) diff --git a/apps/sim/app/chat/[subdomain]/components/input/input.tsx b/apps/sim/app/chat/[subdomain]/components/input/input.tsx index 126d2de9963..c513965e079 100644 --- a/apps/sim/app/chat/[subdomain]/components/input/input.tsx +++ b/apps/sim/app/chat/[subdomain]/components/input/input.tsx @@ -7,7 +7,8 @@ import { Send, Square } from 'lucide-react' import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip' import { VoiceInput } from './voice-input' -const PLACEHOLDER = 'Enter a message or click the mic to speak' +const PLACEHOLDER_MOBILE = 'Enter a message' +const PLACEHOLDER_DESKTOP = 'Enter a message or click the mic to speak' const MAX_TEXTAREA_HEIGHT = 160 // Max height in pixels (e.g., for about 4-5 lines) const containerVariants = { @@ -195,31 +196,50 @@ export const ChatInput: React.FC<{
{!isActive && !inputValue && ( -
- {PLACEHOLDER} - -
+ `} +
+ )}