From b17087b610719f26a4444187689fa6c0cf79dc58 Mon Sep 17 00:00:00 2001 From: bizzkoot Date: Tue, 13 Jan 2026 06:48:33 +0800 Subject: [PATCH] refactor: remove mobile-specific placeholder text for simplicity - Remove isMobileWidth signal and updateMobileWidth resize listener - Use same placeholder text for all devices/platforms - "Type your message, @file, @agent, or paste images and text..." Simplifies implementation per dev feedback - one approach for all --- packages/ui/src/components/prompt-input.tsx | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/packages/ui/src/components/prompt-input.tsx b/packages/ui/src/components/prompt-input.tsx index f7f9b036..00ea57a5 100644 --- a/packages/ui/src/components/prompt-input.tsx +++ b/packages/ui/src/components/prompt-input.tsx @@ -90,31 +90,10 @@ export default function PromptInput(props: PromptInputProps) { return `${Math.max(maxHeight, 150)}px` // Minimum 150px to be useful }) - // Responsive placeholder text - shorter on mobile to avoid overlap with expand button - const [isMobileWidth, setIsMobileWidth] = createSignal(false) - - const updateMobileWidth = () => { - if (typeof window !== "undefined") { - setIsMobileWidth(window.innerWidth <= 640) - } - } - - onMount(() => { - updateMobileWidth() - window.addEventListener("resize", updateMobileWidth) - onCleanup(() => { - window.removeEventListener("resize", updateMobileWidth) - }) - }) - const getPlaceholder = () => { if (mode() === "shell") { return "Run a shell command (Esc to exit)..." } - // Use shorter placeholder on mobile to prevent overlap with expand button - if (isMobileWidth()) { - return "Type message, @file, @agent..." - } return "Type your message, @file, @agent, or paste images and text..." }