diff options
| author | Ariane Emory <[email protected]> | 2025-12-07 20:47:02 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-07 19:47:02 -0600 |
| commit | 4cf2322b7f8558a2732dba74d67a18424977f5c1 (patch) | |
| tree | e1158cb880e4373ad6e39d5c455d00ba60c19c53 | |
| parent | 2c6fcc5dc1b0b078c42528d398a00f220aefcc1f (diff) | |
| download | opencode-4cf2322b7f8558a2732dba74d67a18424977f5c1.tar.gz opencode-4cf2322b7f8558a2732dba74d67a18424977f5c1.zip | |
fix: toggle timestamps now properly hides/shows timestamps when toggled (resolves #5142) (#5145)
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index 5d3dc3601..bba0eb1df 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1049,12 +1049,12 @@ function UserMessage(props: { <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)} - </span> + <Show when={ctx.showTimestamps()}> + <span style={{ fg: theme.textMuted }}> + {ctx.usernameVisible() ? " · " : " "} + {Locale.todayTimeOrDateTime(props.message.time.created)} + </span> + </Show> } > <span style={{ bg: theme.accent, fg: theme.backgroundPanel, bold: true }}> QUEUED </span> |
