File tree Expand file tree Collapse file tree
apps/web/src/components/chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3129,7 +3129,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
31293129 instanceEntries = { providerInstanceEntries }
31303130 keybindings = { keybindings }
31313131 modelOptionsByInstance = { modelOptionsByInstance }
3132- triggerClassName = "-ms-px "
3132+ triggerClassName = "-ms-2.5 "
31333133 terminalOpen = { terminalOpen }
31343134 open = { isComposerModelPickerOpen }
31353135 { ...( composerProviderState . modelPickerIconClassName
Original file line number Diff line number Diff line change 1+ // @effect -diagnostics nodeBuiltinImport:off - Regression coverage compares shipped utility classes.
2+ import * as NodeFS from "node:fs" ;
3+
4+ import { describe , expect , it } from "vite-plus/test" ;
5+
6+ describe ( "composer model picker spacing" , ( ) => {
7+ it ( "extends the trigger background left without moving its content" , ( ) => {
8+ const composerControlSource = NodeFS . readFileSync (
9+ new URL ( "./ComposerControl.tsx" , import . meta. url ) ,
10+ "utf8" ,
11+ ) ;
12+ const chatComposerSource = NodeFS . readFileSync (
13+ new URL ( "./ChatComposer.tsx" , import . meta. url ) ,
14+ "utf8" ,
15+ ) ;
16+ const modelPickerCall = chatComposerSource . match ( / < P r o v i d e r M o d e l P i c k e r [ \s \S ] * ?\/ > / ) ?. [ 0 ] ;
17+
18+ expect ( composerControlSource ) . toContain ( "px-2.5" ) ;
19+ expect ( modelPickerCall ) . toContain ( 'triggerClassName="-ms-2.5"' ) ;
20+ expect ( modelPickerCall ) . not . toContain ( "ps-0" ) ;
21+ } ) ;
22+ } ) ;
You can’t perform that action at this time.
0 commit comments