File tree Expand file tree Collapse file tree
apps/webapp/app/components/dashboard-agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,15 +220,17 @@ describe("FloatingAgentWindow keeps its child mounted across every mode transiti
220220} ) ;
221221
222222describe ( "FloatingAgentWindow's fullscreen geometry" , ( ) => {
223- it ( "pins the exact takeover classes from before the mode switcher (8dea45a09) " , ( ) => {
223+ it ( "pins the exact takeover classes, including the flex column that fills the takeover's height " , ( ) => {
224224 container = document . createElement ( "div" ) ;
225225 document . body . appendChild ( container ) ;
226226 root = createRoot ( container ) ;
227227 act ( ( ) => {
228228 root ! . render ( createElement ( FloatingAgentWindow , { mode : "fullscreen" } , ( ) => null ) ) ;
229229 } ) ;
230230 const outer = container . firstElementChild as HTMLDivElement ;
231- expect ( outer . className ) . toBe ( "absolute inset-0 z-10 bg-background-bright" ) ;
231+ expect ( outer . className ) . toBe ( "absolute inset-0 z-10 flex flex-col bg-background-bright" ) ;
232+ expect ( outer . classList . contains ( "flex" ) ) . toBe ( true ) ;
233+ expect ( outer . classList . contains ( "flex-col" ) ) . toBe ( true ) ;
232234 expect ( outer . getAttribute ( "style" ) ) . toBeNull ( ) ;
233235 } ) ;
234236} ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export function writeAgentMode(mode: DashboardAgentMode): void {
6969}
7070
7171function agentTakeoverClassName ( fullscreen : boolean ) : string {
72- return fullscreen ? "absolute inset-0 z-10 bg-background-bright" : "h-full" ;
72+ return fullscreen ? "absolute inset-0 z-10 flex flex-col bg-background-bright" : "h-full" ;
7373}
7474
7575// `invisible` rather than `display: none`: only this preserves the computed layout, so
You can’t perform that action at this time.
0 commit comments