File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -345,10 +345,12 @@ export function DialogSelectFile(props: { mode?: DialogSelectFileMode; onOpenFil
345345 const open = ( path : string ) => {
346346 const value = file . tab ( path )
347347 tabs ( ) . open ( value )
348+ tabs ( ) . setActive ( value )
348349 file . load ( path )
349350 if ( ! view ( ) . reviewPanel . opened ( ) ) view ( ) . reviewPanel . open ( )
350351 layout . fileTree . setTab ( "all" )
351352 props . onOpenFile ?.( path )
353+ tabs ( ) . setActive ( value )
352354 }
353355
354356 const handleSelect = ( item : Entry | undefined ) => {
Original file line number Diff line number Diff line change @@ -311,12 +311,14 @@ export function SessionHeader() {
311311 platform,
312312 } )
313313
314- const centerMount = createMemo ( ( ) => document . getElementById ( "opencode-titlebar-center" ) )
314+ const leftMount = createMemo (
315+ ( ) => document . getElementById ( "opencode-titlebar-left" ) ?? document . getElementById ( "opencode-titlebar-center" ) ,
316+ )
315317 const rightMount = createMemo ( ( ) => document . getElementById ( "opencode-titlebar-right" ) )
316318
317319 return (
318320 < >
319- < Show when = { centerMount ( ) } >
321+ < Show when = { leftMount ( ) } >
320322 { ( mount ) => (
321323 < Portal mount = { mount ( ) } >
322324 < button
Original file line number Diff line number Diff line change @@ -13,13 +13,18 @@ export function SessionMobileTabs(props: {
1313 return (
1414 < Show when = { props . open } >
1515 < Tabs value = { props . mobileTab } class = "h-auto" >
16- < Tabs . List >
17- < Tabs . Trigger value = "session" class = "w-1/2" classes = { { button : "w-full" } } onClick = { props . onSession } >
16+ < Tabs . List class = "!grid !grid-cols-2 [&::after]:hidden" >
17+ < Tabs . Trigger
18+ value = "session"
19+ class = "w-full !max-w-none"
20+ classes = { { button : "w-full" } }
21+ onClick = { props . onSession }
22+ >
1823 { props . t ( "session.tab.session" ) }
1924 </ Tabs . Trigger >
2025 < Tabs . Trigger
2126 value = "changes"
22- class = "w-1/2 !border-r-0"
27+ class = "w-full !max-w-none !border-r-0"
2328 classes = { { button : "w-full" } }
2429 onClick = { props . onChanges }
2530 >
You can’t perform that action at this time.
0 commit comments