Skip to content

Commit 4cf2322

Browse files
authored
fix: toggle timestamps now properly hides/shows timestamps when toggled (resolves anomalyco#5142) (anomalyco#5145)
1 parent 2c6fcc5 commit 4cf2322

File tree

1 file changed

+6
-6
lines changed
  • packages/opencode/src/cli/cmd/tui/routes/session

1 file changed

+6
-6
lines changed

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,12 +1049,12 @@ function UserMessage(props: {
10491049
<Show
10501050
when={queued()}
10511051
fallback={
1052-
<span style={{ fg: theme.textMuted }}>
1053-
{ctx.usernameVisible() ? " · " : " "}
1054-
{ctx.showTimestamps()
1055-
? Locale.todayTimeOrDateTime(props.message.time.created)
1056-
: Locale.time(props.message.time.created)}
1057-
</span>
1052+
<Show when={ctx.showTimestamps()}>
1053+
<span style={{ fg: theme.textMuted }}>
1054+
{ctx.usernameVisible() ? " · " : " "}
1055+
{Locale.todayTimeOrDateTime(props.message.time.created)}
1056+
</span>
1057+
</Show>
10581058
}
10591059
>
10601060
<span style={{ bg: theme.accent, fg: theme.backgroundPanel, bold: true }}> QUEUED </span>

0 commit comments

Comments
 (0)