refactor(tui): add dialog inset constants (#55498)

This commit is contained in:
James Long
2026-10-15 11:38:21 -04:00
committed by GitHub
Unverified
parent 654b79b27e
commit 4f31eb987d
+6
View File
@@ -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