From b62c63ac546d1d8022de871f00f44444676f2434 Mon Sep 17 00:00:00 2001 From: Ammar Date: Fri, 7 Nov 2025 15:46:37 +0000 Subject: [PATCH] fix: use container queries for responsive chat controls Replace viewport-based media queries with CSS container queries so chat controls compact based on actual available space, not window size. Fixes issue where controls don't compact when dev tools are open. --- src/components/ChatInput.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/ChatInput.tsx b/src/components/ChatInput.tsx index bfe13a27b..015123fc4 100644 --- a/src/components/ChatInput.tsx +++ b/src/components/ChatInput.tsx @@ -836,7 +836,7 @@ export const ChatInput: React.FC = ({ Editing message ({formatKeybind(KEYBINDS.CANCEL_EDIT)} to cancel) )} -
+
{/* Model Selector - always visible */}
= ({
- {/* Thinking Slider - slider hidden on narrow viewports, label always clickable */} + {/* Thinking Slider - slider hidden on narrow containers, label always clickable */}
@@ -896,8 +896,8 @@ export const ChatInput: React.FC = ({
)} - {/* Mode Switch - full version for wide viewports */} -
+ {/* Mode Switch - full version for wide containers */} +
= ({
- {/* Mode Switch - compact version for narrow viewports */} -
+ {/* Mode Switch - compact version for narrow containers */} +
options={MODE_OPTIONS} value={mode} onChange={setMode} compact />