fix(tui): Fix tip text truncation in TUI (issue #11154)

This commit is contained in:
01luyicheng
2026-02-01 09:49:21 +08:00
parent b85b0d3190
commit d43a1f5eec

View File

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