mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: add visual separator between username and timestamp for better readability
This commit is contained in:
parent
1b05d5dd8e
commit
dd0945b9ca
1 changed files with 2 additions and 1 deletions
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue