From 8344066696ca202d35180db9eeec47952c60c931 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Sun, 23 Aug 2026 23:53:40 +0800 Subject: [PATCH] style(tui): frame recovery decisions --- tui/src/app.ts | 1 + tui/src/recovery-notice.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tui/src/app.ts b/tui/src/app.ts index b17c35ffc..a2a1d32e3 100644 --- a/tui/src/app.ts +++ b/tui/src/app.ts @@ -312,6 +312,7 @@ function recoveryNoticeTheme(palette: Palette): RecoveryNoticeTheme { return { text: palette.text, muted: palette.muted, + border: palette.border, accent: palette.accent, warning: palette.warning, error: palette.error, diff --git a/tui/src/recovery-notice.ts b/tui/src/recovery-notice.ts index 09eea1b26..f37085364 100644 --- a/tui/src/recovery-notice.ts +++ b/tui/src/recovery-notice.ts @@ -13,6 +13,7 @@ import type { RecoveryState } from "./protocol" export interface RecoveryNoticeTheme { text: string muted: string + border: string accent: string warning: string error: string @@ -41,9 +42,12 @@ export class RecoveryNotice { this.root = new BoxRenderable(renderer, { id: "nanobot-tui-recovery-notice", width: "100%", - height: 2, + height: 4, flexShrink: 0, flexDirection: "column", + border: true, + borderStyle: "rounded", + borderColor: theme.border, paddingLeft: 1, paddingRight: 1, visible: false, @@ -106,6 +110,7 @@ export class RecoveryNotice { setTheme(theme: RecoveryNoticeTheme): void { this.theme = theme + this.root.borderColor = theme.border if (this.visible) this.render() }