@@ -252,41 +252,48 @@ export function Titlebar() {
252252 </ div >
253253 </ div >
254254 </ Show >
255- < Show when = { hasProjects ( ) } >
256- < div
257- class = "flex items-center gap-0 transition-transform"
258- classList = { {
259- "translate-x-0" : ! layout . sidebar . opened ( ) ,
260- "-translate-x-[36px]" : layout . sidebar . opened ( ) ,
261- "duration-180 ease-out" : ! layout . sidebar . opened ( ) ,
262- "duration-180 ease-in" : layout . sidebar . opened ( ) ,
263- } }
264- >
265- < Tooltip placement = "bottom" value = { language . t ( "common.goBack" ) } openDelay = { 2000 } >
266- < Button
267- variant = "ghost"
268- icon = "chevron-left"
269- class = "titlebar-icon w-6 h-6 p-0 box-border"
270- disabled = { ! canBack ( ) }
271- onClick = { back }
272- aria-label = { language . t ( "common.goBack" ) }
273- />
274- </ Tooltip >
275- < Tooltip placement = "bottom" value = { language . t ( "common.goForward" ) } openDelay = { 2000 } >
276- < Button
277- variant = "ghost"
278- icon = "chevron-right"
279- class = "titlebar-icon w-6 h-6 p-0 box-border"
280- disabled = { ! canForward ( ) }
281- onClick = { forward }
282- aria-label = { language . t ( "common.goForward" ) }
283- />
284- </ Tooltip >
285- </ div >
286- </ Show >
255+ < div
256+ class = "flex items-center shrink-0"
257+ classList = { {
258+ "translate-x-0" : ! layout . sidebar . opened ( ) ,
259+ "-translate-x-[36px]" : layout . sidebar . opened ( ) ,
260+ "duration-180 ease-out" : ! layout . sidebar . opened ( ) ,
261+ "duration-180 ease-in" : layout . sidebar . opened ( ) ,
262+ } }
263+ >
264+ < Show when = { hasProjects ( ) } >
265+ < div class = "flex items-center gap-0 transition-transform" >
266+ < Tooltip placement = "bottom" value = { language . t ( "common.goBack" ) } openDelay = { 2000 } >
267+ < Button
268+ variant = "ghost"
269+ icon = "chevron-left"
270+ class = "titlebar-icon w-6 h-6 p-0 box-border"
271+ disabled = { ! canBack ( ) }
272+ onClick = { back }
273+ aria-label = { language . t ( "common.goBack" ) }
274+ />
275+ </ Tooltip >
276+ < Tooltip placement = "bottom" value = { language . t ( "common.goForward" ) } openDelay = { 2000 } >
277+ < Button
278+ variant = "ghost"
279+ icon = "chevron-right"
280+ class = "titlebar-icon w-6 h-6 p-0 box-border"
281+ disabled = { ! canForward ( ) }
282+ onClick = { forward }
283+ aria-label = { language . t ( "common.goForward" ) }
284+ />
285+ </ Tooltip >
286+ </ div >
287+ </ Show >
288+ < div id = "opencode-titlebar-left" class = "flex items-center gap-3 min-w-0 px-2" />
289+ { [ "beta" , "dev" ] . includes ( import . meta. env . VITE_OPENCODE_CHANNEL ) && (
290+ < div class = "bg-icon-interactive-base text-[#FFF] font-medium px-2 rounded-sm uppercase font-mono" >
291+ { import . meta. env . VITE_OPENCODE_CHANNEL . toUpperCase ( ) }
292+ </ div >
293+ ) }
294+ </ div >
287295 </ div >
288296 </ div >
289- < div id = "opencode-titlebar-left" class = "flex items-center gap-3 min-w-0 px-2" />
290297 </ div >
291298
292299 < div class = "min-w-0 flex items-center justify-center pointer-events-none" >
0 commit comments