From edc582e8a00227a0901bfc4e097b736868beed1d Mon Sep 17 00:00:00 2001 From: 01luyicheng Date: Sun, 1 Feb 2026 13:11:50 +0800 Subject: [PATCH] fix(tui): Simplify Tips layout and remove container constraints --- packages/opencode/src/cli/cmd/tui/component/tips.tsx | 4 +--- packages/opencode/src/cli/cmd/tui/routes/home.tsx | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/opencode/src/cli/cmd/tui/component/tips.tsx b/packages/opencode/src/cli/cmd/tui/component/tips.tsx index b475a98b34..16b454eaad 100644 --- a/packages/opencode/src/cli/cmd/tui/component/tips.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/tips.tsx @@ -1,5 +1,4 @@ import { createMemo, createSignal, For } from "solid-js" -import { useTerminalDimensions } from "@opentui/solid" import { DEFAULT_THEMES, useTheme } from "@tui/context/theme" import { Locale } from "@/util/locale" @@ -34,11 +33,10 @@ function parse(tip: string): TipPart[] { export function Tips() { const theme = useTheme().theme - const dimensions = useTerminalDimensions() const parts = parse(TIPS[Math.floor(Math.random() * TIPS.length)]) return ( - + ● Tip{" "} diff --git a/packages/opencode/src/cli/cmd/tui/routes/home.tsx b/packages/opencode/src/cli/cmd/tui/routes/home.tsx index b1766add0a..0fbfca8506 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/home.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/home.tsx @@ -105,7 +105,7 @@ export function Home() { hint={Hint} /> - +