From 115a0a513267d60ea407417a10fa9db7549718fb Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 03:57:22 +0000 Subject: [PATCH] fix: prevent system prompt icon layout shift with invisible placeholder - Always render system prompt container div to reserve space - Use 'invisible' CSS class instead of conditional rendering - Prevent layout shift when billing status loads for paid users - Maintain accessibility with proper button disabled state Fixes #143 Co-authored-by: Anthony --- frontend/src/components/ChatBox.tsx | 71 ++++++++++++++--------------- 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/frontend/src/components/ChatBox.tsx b/frontend/src/components/ChatBox.tsx index dc5b1010..3447c4e6 100644 --- a/frontend/src/components/ChatBox.tsx +++ b/frontend/src/components/ChatBox.tsx @@ -717,43 +717,42 @@ export default function Component({ return (
{/* Simple System Prompt Section - just a gear button and input when expanded */} - {canEditSystemPrompt && ( -
-
- -
- - {isSystemPromptExpanded && ( -