From 4f2974dbfe36638915f1b08448d2563c64f88644 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:55:53 -0700 Subject: feat(ui): Improve UI layout adaptation for narrow terminals (#5651) Co-authored-by: Jacob Richman --- packages/cli/src/ui/utils/isNarrowWidth.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 packages/cli/src/ui/utils/isNarrowWidth.ts (limited to 'packages/cli/src/ui/utils') diff --git a/packages/cli/src/ui/utils/isNarrowWidth.ts b/packages/cli/src/ui/utils/isNarrowWidth.ts new file mode 100644 index 00000000..5540a400 --- /dev/null +++ b/packages/cli/src/ui/utils/isNarrowWidth.ts @@ -0,0 +1,9 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +export function isNarrowWidth(width: number): boolean { + return width < 80; +} -- cgit v1.2.3