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

This commit is contained in:
Dax Raad 2025-12-06 18:19:18 -05:00
parent 1b05d5dd8e
commit dd0945b9ca

View file

@ -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)}