From 5208d22fe71c2ab6535463561fc1e92d8f321a57 Mon Sep 17 00:00:00 2001 From: spencrmartin Date: Thu, 25 Sep 2025 13:07:42 -0400 Subject: [PATCH] Fix empty state placeholder alignment in RichChatInput - Changed placeholder container from flex items-center to match content structure - Applied same whitespace-pre-wrap, min-h-[1.5em], and leading-relaxed classes - Standardized cursor styling with align-baseline and consistent margins - Ensures empty state and content state have identical vertical positioning - Eliminates awkward upward shift when transitioning from empty to content state --- ui/desktop/src/components/RichChatInput.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/desktop/src/components/RichChatInput.tsx b/ui/desktop/src/components/RichChatInput.tsx index 1ea8b4107d..50d19b95c1 100644 --- a/ui/desktop/src/components/RichChatInput.tsx +++ b/ui/desktop/src/components/RichChatInput.tsx @@ -301,14 +301,16 @@ export const RichChatInput = forwardRef(({ // Show placeholder when there's no text content (but account for whitespace-only content with newlines) if (!value || (value.trim() === '' && !value.includes('\n'))) { return ( -
+
{isFocused && cursorPosition === 0 && ( )}