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
+1 -1
View File
@@ -116,7 +116,7 @@ function HistoryEntry({
<UndoButton
changeSet={changeSet}
undo={undo}
className="w-32 shrink-0"
className="w-32 shrink-0 text-right"
label={reverted ? 'Undo again' : 'Undo'}
/>
)}
+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>
)