@@ -153,6 +153,7 @@ export function SessionHeader() {
153153 } )
154154 const hotkey = createMemo ( ( ) => command . keybind ( "file.open" ) )
155155 const os = createMemo ( ( ) => detectOS ( platform ) )
156+ const search = createMemo ( ( ) => platform . platform !== "desktop" || settings . general . showSearch ( ) )
156157 const tree = createMemo ( ( ) => platform . platform !== "desktop" || settings . general . showFileTree ( ) )
157158 const term = createMemo ( ( ) => platform . platform !== "desktop" || settings . general . showTerminal ( ) )
158159 const status = createMemo ( ( ) => platform . platform !== "desktop" || settings . general . showStatus ( ) )
@@ -272,35 +273,37 @@ export function SessionHeader() {
272273
273274 return (
274275 < >
275- < Show when = { centerMount ( ) } >
276- { ( mount ) => (
277- < Portal mount = { mount ( ) } >
278- < Button
279- type = "button"
280- variant = "ghost"
281- size = "small"
282- class = "hidden md:flex w-[240px] max-w-full min-w-0 items-center gap-2 justify-between rounded-md border border-border-weak-base bg-surface-panel shadow-none cursor-default"
283- onClick = { ( ) => command . trigger ( "file.open" ) }
284- aria-label = { language . t ( "session.header.searchFiles" ) }
285- >
286- < div class = "flex min-w-0 flex-1 items-center overflow-visible" >
287- < span class = "flex-1 min-w-0 text-12-regular text-text-weak truncate text-left" >
288- { language . t ( "session.header.search.placeholder" , {
289- project : name ( ) ,
290- } ) }
291- </ span >
292- </ div >
276+ < Show when = { search ( ) } >
277+ < Show when = { centerMount ( ) } >
278+ { ( mount ) => (
279+ < Portal mount = { mount ( ) } >
280+ < Button
281+ type = "button"
282+ variant = "ghost"
283+ size = "small"
284+ class = "hidden md:flex w-[240px] max-w-full min-w-0 items-center gap-2 justify-between rounded-md border border-border-weak-base bg-surface-panel shadow-none cursor-default"
285+ onClick = { ( ) => command . trigger ( "file.open" ) }
286+ aria-label = { language . t ( "session.header.searchFiles" ) }
287+ >
288+ < div class = "flex min-w-0 flex-1 items-center overflow-visible" >
289+ < span class = "flex-1 min-w-0 text-12-regular text-text-weak truncate text-left" >
290+ { language . t ( "session.header.search.placeholder" , {
291+ project : name ( ) ,
292+ } ) }
293+ </ span >
294+ </ div >
293295
294- < Show when = { hotkey ( ) } >
295- { ( keybind ) => (
296- < Keybind class = "shrink-0 !border-0 !bg-transparent !shadow-none px-0 text-text-weaker" >
297- { keybind ( ) }
298- </ Keybind >
299- ) }
300- </ Show >
301- </ Button >
302- </ Portal >
303- ) }
296+ < Show when = { hotkey ( ) } >
297+ { ( keybind ) => (
298+ < Keybind class = "shrink-0 !border-0 !bg-transparent !shadow-none px-0 text-text-weaker" >
299+ { keybind ( ) }
300+ </ Keybind >
301+ ) }
302+ </ Show >
303+ </ Button >
304+ </ Portal >
305+ ) }
306+ </ Show >
304307 </ Show >
305308 < Show when = { rightMount ( ) } >
306309 { ( mount ) => (
0 commit comments