From 4f31eb987dadde52ed986ab6434a00397d3b51a6 Mon Sep 17 00:00:00 2001 From: James Long Date: Thu, 15 Oct 2026 11:38:21 -0400 Subject: [PATCH] refactor(tui): add dialog inset constants (#55498) --- packages/tui/src/ui/dialog.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/tui/src/ui/dialog.tsx b/packages/tui/src/ui/dialog.tsx index 797c667ca28..ccb84ee5ac5 100644 --- a/packages/tui/src/ui/dialog.tsx +++ b/packages/tui/src/ui/dialog.tsx @@ -11,6 +11,12 @@ import { copy, copyOnSelectRelease } from "../util/selection" export type DialogSize = "medium" | "large" | "xlarge" +export const DIALOG_PADDING_X = 4 + +export const DIALOG_INSET = 3 +// List rows reserve a 1-cell gutter for the ▌ bar / ● marker. +export const DIALOG_LIST_INSET = DIALOG_INSET + 1 + export function dialogWidth(size: DialogSize) { if (size === "xlarge") return 116 if (size === "large") return 88