fix(tui): Change flexDirection to column for tips layout

This commit is contained in:
01luyicheng
2026-02-01 11:20:24 +08:00
parent 8aca8e77e2
commit 9712a60dfb
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ export function Tips() {
const parts = parse(TIPS[Math.floor(Math.random() * TIPS.length)])
return (
<box flexDirection="row" maxWidth="100%">
<box flexDirection="column" maxWidth="100%">
<text flexShrink={0} style={{ fg: theme.warning }}>
Tip{" "}
</text>

View File

@@ -105,7 +105,7 @@ export function Home() {
hint={Hint}
/>
</box>
<box width="100%" paddingTop={2}>
<box width="100%" paddingTop={2} flexDirection="column">
<Show when={showTips()}>
<Tips />
</Show>