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>
|
</box>
|
||||||
</Show>
|
</Show>
|
||||||
<text fg={theme.textMuted}>
|
<text fg={theme.textMuted}>
|
||||||
{ctx.usernameVisible() ? `${sync.data.config.username ?? "You"} ` : "You"}{" "}
|
{ctx.usernameVisible() ? `${sync.data.config.username ?? "You"}` : "You"}
|
||||||
<Show
|
<Show
|
||||||
when={queued()}
|
when={queued()}
|
||||||
fallback={
|
fallback={
|
||||||
<span style={{ fg: theme.textMuted }}>
|
<span style={{ fg: theme.textMuted }}>
|
||||||
|
{ctx.usernameVisible() ? " · " : " "}
|
||||||
{ctx.showTimestamps()
|
{ctx.showTimestamps()
|
||||||
? Locale.todayTimeOrDateTime(props.message.time.created)
|
? Locale.todayTimeOrDateTime(props.message.time.created)
|
||||||
: Locale.time(props.message.time.created)}
|
: Locale.time(props.message.time.created)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue