@@ -8,8 +8,7 @@ import { getDirectory, getFilename } from "@opencode-ai/util/path"
88
99const MAIN_WORKTREE = "main"
1010const CREATE_WORKTREE = "create"
11- const ROOT_CLASS =
12- "size-full flex flex-col justify-end items-start gap-4 flex-[1_0_0] self-stretch max-w-200 mx-auto 2xl:max-w-[1000px] px-6 pb-16"
11+ const ROOT_CLASS = "size-full flex flex-col"
1312
1413interface NewSessionViewProps {
1514 worktree : string
@@ -50,33 +49,40 @@ export function NewSessionView(props: NewSessionViewProps) {
5049
5150 return (
5251 < div class = { ROOT_CLASS } >
53- < div class = "text-20-medium text-text-weaker" > { language . t ( "command.session.new" ) } </ div >
54- < div class = "flex justify-center items-start gap-3 min-h-5" >
55- < Icon name = "folder" size = "small" class = "mt-0.5 shrink-0" />
56- < div class = "text-12-medium text-text-weak select-text leading-5" >
57- { getDirectory ( projectRoot ( ) ) }
58- < span class = "text-text-strong" > { getFilename ( projectRoot ( ) ) } </ span >
59- </ div >
60- </ div >
61- < div class = "flex justify-center items-start gap-3 min-h-5" >
62- < Icon name = "branch" size = "small" class = "mt-0.5 shrink-0" />
63- < div class = "text-12-medium text-text-weak select-text leading-5" > { label ( current ( ) ) } </ div >
64- </ div >
65- < Show when = { sync . project } >
66- { ( project ) => (
67- < div class = "flex justify-center items-start gap-3 min-h-5" >
68- < Icon name = "pencil-line" size = "small" class = "mt-0.5 shrink-0" />
69- < div class = "text-12-medium text-text-weak leading-5" >
70- { language . t ( "session.new.lastModified" ) }
71- < span class = "text-text-strong" >
72- { DateTime . fromMillis ( project ( ) . time . updated ?? project ( ) . time . created )
73- . setLocale ( language . intl ( ) )
74- . toRelative ( ) }
75- </ span >
52+ < div class = "h-12 shrink-0" aria-hidden />
53+ < div class = "flex-1 px-6 pb-30 flex items-center justify-center text-center" >
54+ < div class = "w-full max-w-200 flex flex-col items-center text-center gap-4" >
55+ < div class = "text-20-medium text-text-strong" > { language . t ( "session.new.title" ) } </ div >
56+ < div class = "w-full flex flex-col gap-4 items-center" >
57+ < div class = "flex items-start justify-center gap-3 min-h-5" >
58+ < div class = "text-12-medium text-text-weak select-text leading-5 min-w-0 max-w-160 break-words text-center" >
59+ { getDirectory ( projectRoot ( ) ) }
60+ < span class = "text-text-strong" > { getFilename ( projectRoot ( ) ) } </ span >
61+ </ div >
7662 </ div >
63+ < div class = "flex items-start justify-center gap-1.5 min-h-5" >
64+ < Icon name = "branch" size = "small" class = "mt-0.5 shrink-0" />
65+ < div class = "text-12-medium text-text-weak select-text leading-5 min-w-0 max-w-160 break-words text-center" >
66+ { label ( current ( ) ) }
67+ </ div >
68+ </ div >
69+ < Show when = { sync . project } >
70+ { ( project ) => (
71+ < div class = "flex items-start justify-center gap-3 min-h-5" >
72+ < div class = "text-12-medium text-text-weak leading-5 min-w-0 max-w-160 break-words text-center" >
73+ { language . t ( "session.new.lastModified" ) }
74+ < span class = "text-text-strong" >
75+ { DateTime . fromMillis ( project ( ) . time . updated ?? project ( ) . time . created )
76+ . setLocale ( language . intl ( ) )
77+ . toRelative ( ) }
78+ </ span >
79+ </ div >
80+ </ div >
81+ ) }
82+ </ Show >
7783 </ div >
78- ) }
79- </ Show >
84+ </ div >
85+ </ div >
8086 </ div >
8187 )
8288}
0 commit comments