@@ -447,21 +447,23 @@ function HomeProjectList(props: {
447447 </ button >
448448 }
449449 >
450- < For each = { props . projects } >
451- { ( project ) => (
452- < HomeProjectRow
453- project = { project }
454- selected = { props . selected === project . worktree }
455- unseenCount = { props . unseenCount ( project ) }
456- selectProject = { props . selectProject }
457- openNewSession = { props . openNewSession }
458- editProject = { props . editProject }
459- closeProject = { props . closeProject }
460- clearNotifications = { props . clearNotifications }
461- language = { props . language }
462- />
463- ) }
464- </ For >
450+ < div class = "flex min-w-0 flex-col gap-1" >
451+ < For each = { props . projects } >
452+ { ( project ) => (
453+ < HomeProjectRow
454+ project = { project }
455+ selected = { props . selected === project . worktree }
456+ unseenCount = { props . unseenCount ( project ) }
457+ selectProject = { props . selectProject }
458+ openNewSession = { props . openNewSession }
459+ editProject = { props . editProject }
460+ closeProject = { props . closeProject }
461+ clearNotifications = { props . clearNotifications }
462+ language = { props . language }
463+ />
464+ ) }
465+ </ For >
466+ </ div >
465467 </ Show >
466468 )
467469}
@@ -495,6 +497,14 @@ function HomeProjectRow(props: {
495497 class = "absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-0.5 opacity-0 transition-opacity group-hover/project:opacity-100 focus-within:opacity-100 data-[menu=true]:opacity-100"
496498 data-menu = { state . menuOpen }
497499 >
500+ < IconButtonV2
501+ data-action = "home-project-new-session"
502+ variant = "ghost-muted"
503+ size = "small"
504+ icon = { < IconV2 name = "edit" /> }
505+ aria-label = { props . language . t ( "command.session.new" ) }
506+ onClick = { ( ) => props . openNewSession ( props . project . worktree ) }
507+ />
498508 < MenuV2
499509 gutter = { 4 }
500510 modal = { false }
@@ -528,14 +538,6 @@ function HomeProjectRow(props: {
528538 </ MenuV2 . Content >
529539 </ MenuV2 . Portal >
530540 </ MenuV2 >
531- < IconButtonV2
532- data-action = "home-project-new-session"
533- variant = "ghost-muted"
534- size = "small"
535- icon = { < IconV2 name = "edit" /> }
536- aria-label = { props . language . t ( "command.session.new" ) }
537- onClick = { ( ) => props . openNewSession ( props . project . worktree ) }
538- />
539541 </ div >
540542 </ div >
541543 )
0 commit comments