mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 20:21:39 +03:00
refactor(tui): add dialog inset constants (#55498)
This commit is contained in:
committed by
GitHub
Unverified
parent
654b79b27e
commit
4f31eb987d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user