Let the container align the undo outcome note (#74)
Build image / build-and-push (push) Successful in 10s

Co-authored-by: Steve Dudenhoeffer <[email protected]>
This commit was merged in pull request #74.
This commit is contained in:
2026-07-21 13:02:27 +00:00
committed by steve
parent 62604523d7
commit 1d2f0eba56
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -43,8 +43,12 @@ const TONE_CLASS: Record<Exclude<UndoOutcome['tone'], 'pending'>, string> = {
function OutcomeNote({ outcome }: { outcome: UndoOutcome }) {
if (outcome.tone === 'pending') return null
// No text alignment of its own: the container decides. The history list stacks
// this to the right of an entry, the chat panel puts it under a left-aligned
// message, and a hard-coded text-right made the chat's copy read against its
// own column.
return (
<p role="status" className={cn('text-right text-xs', TONE_CLASS[outcome.tone])}>
<p role="status" className={cn('text-xs', TONE_CLASS[outcome.tone])}>
{outcome.message}
</p>
)