diff --git a/CHANGELOG.md b/CHANGELOG.md index 734914eb..1e904284 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file. ## [Unreleased] + +## [1.1.4] - 2025-12-15 + - Flexoki themes for Shiki syntax highlighting for consistency with the app color schema. +- Enchanced VSCode extension theming with editor themes +- Fixed mobile view model/agent selection ## [1.1.3] - 2025-12-14 diff --git a/packages/ui/src/components/chat/ChatInput.tsx b/packages/ui/src/components/chat/ChatInput.tsx index 20adb78f..95dcc07b 100644 --- a/packages/ui/src/components/chat/ChatInput.tsx +++ b/packages/ui/src/components/chat/ChatInput.tsx @@ -870,9 +870,10 @@ export const ChatInput: React.FC = ({ onOpenSettings, scrollToBo
{attachmentsControls}
-
-
- +
+
+ +
{actionButton}
diff --git a/packages/ui/src/components/chat/ModelControls.tsx b/packages/ui/src/components/chat/ModelControls.tsx index f4639f6e..b22910b5 100644 --- a/packages/ui/src/components/chat/ModelControls.tsx +++ b/packages/ui/src/components/chat/ModelControls.tsx @@ -1473,7 +1473,6 @@ export const ModelControls: React.FC = ({ className }) => {
@@ -1494,7 +1493,7 @@ export const ModelControls: React.FC = ({ className }) => { 'model-controls__model-label', controlTextSize, 'font-medium whitespace-nowrap text-foreground truncate min-w-0', - isDesktopRuntime ? 'max-w-[260px]' : 'flex-1' + 'max-w-[260px]' )} > {getCurrentModelDisplayName()} @@ -1610,7 +1609,8 @@ export const ModelControls: React.FC = ({ className }) => { onTouchEnd={handleLongPressEnd} onTouchCancel={handleLongPressEnd} className={cn( - 'model-controls__model-trigger flex items-center gap-1.5 min-w-0 focus:outline-none flex-1', + 'model-controls__model-trigger flex items-center gap-1.5 min-w-0 focus:outline-none', + isMobile && 'flex-1', 'cursor-pointer hover:opacity-70', buttonHeight )} @@ -1623,7 +1623,12 @@ export const ModelControls: React.FC = ({ className }) => { ) : ( )} - + {getCurrentModelDisplayName()} @@ -1961,7 +1966,14 @@ export const ModelControls: React.FC = ({ className }) => { ); }; - const inlineClassName = cn('@container/model-controls flex items-center min-w-0', inlineGapClass, className); + const inlineClassName = cn( + '@container/model-controls flex items-center min-w-0', + inlineGapClass, + // Only force full-width + truncation behaviors on true mobile layouts. + // VS Code also uses "compact" mode, but should keep its right-aligned inline sizing. + isMobile && 'w-full', + className, + ); return ( <> @@ -1969,12 +1981,16 @@ export const ModelControls: React.FC = ({ className }) => {
{renderModelSelector()}
-
+
{renderAgentSelector()}
diff --git a/packages/ui/src/index.css b/packages/ui/src/index.css index 4d609056..25efd3b7 100644 --- a/packages/ui/src/index.css +++ b/packages/ui/src/index.css @@ -1266,19 +1266,32 @@ html:not(.dark) .chat-scroll { font-size: inherit !important; } -/* Model/agent controls: collapse labels in narrow containers (mobile + VSCode side panel). */ -@container model-controls (max-width: 15rem) { +/* Model/agent controls: agent label hides before model label. */ +@container model-controls (max-width: 11rem) { .model-controls__agent-label { display: none; } } -@container model-controls (max-width: 12rem) { +@container model-controls (max-width: 9rem) { .model-controls__model-label { display: none; } } +/* VS Code side panel: collapse earlier to save horizontal space. */ +@container model-controls (max-width: 9rem) { + :root.vscode-runtime .model-controls__agent-label { + display: none; + } +} + +@container model-controls (max-width: 10rem) { + :root.vscode-runtime .model-controls__model-label { + display: none; + } +} + /* Text font: IBM Plex Sans */ .streamdown-content { font-family: var(--font-sans);