Просмотр исходного кода

tui: add visual separator between username and timestamp for better readability

Dax Raad 2 месяцев назад
Родитель
Сommit
dd0945b9ca
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

+ 2 - 1
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

@@ -1065,11 +1065,12 @@ function UserMessage(props: {
               </box>
             </Show>
             <text fg={theme.textMuted}>
-              {ctx.usernameVisible() ? `${sync.data.config.username ?? "You"} ` : "You"}{" "}
+              {ctx.usernameVisible() ? `${sync.data.config.username ?? "You"}` : "You"}
               <Show
                 when={queued()}
                 fallback={
                   <span style={{ fg: theme.textMuted }}>
+                    {ctx.usernameVisible() ? " · " : " "}
                     {ctx.showTimestamps()
                       ? Locale.todayTimeOrDateTime(props.message.time.created)
                       : Locale.time(props.message.time.created)}