fix(tui): Use wrapMode=word instead of none for tips text

This commit is contained in:
01luyicheng
2026-02-01 11:04:59 +08:00
parent bd1328e81d
commit a87b7fdecc

View File

@@ -40,7 +40,7 @@ export function Tips() {
<text flexShrink={0} style={{ fg: theme.warning }}>
Tip{" "}
</text>
<text flexShrink={1} wrapMode="none" overflow="hidden">
<text flexShrink={1} wrapMode="word">
<For each={parts}>
{(part) => <span style={{ fg: part.highlight ? theme.text : theme.textMuted }}>{part.text}</span>}
</For>