mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 23:04:55 +00:00
fix(tui): Add width=100% to tips text and remove container constraints
This commit is contained in:
@@ -40,7 +40,7 @@ export function Tips() {
|
|||||||
<text flexShrink={0} style={{ fg: theme.warning }}>
|
<text flexShrink={0} style={{ fg: theme.warning }}>
|
||||||
● Tip{" "}
|
● Tip{" "}
|
||||||
</text>
|
</text>
|
||||||
<text flexShrink={1} wrapMode="word">
|
<text flexShrink={1} wrapMode="word" width="100%">
|
||||||
<For each={parts}>
|
<For each={parts}>
|
||||||
{(part) => <span style={{ fg: part.highlight ? theme.text : theme.textMuted }}>{part.text}</span>}
|
{(part) => <span style={{ fg: part.highlight ? theme.text : theme.textMuted }}>{part.text}</span>}
|
||||||
</For>
|
</For>
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ export function Home() {
|
|||||||
hint={Hint}
|
hint={Hint}
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
<box width="100%" maxWidth={75} alignItems="center" paddingTop={2}>
|
<box width="100%" paddingTop={2}>
|
||||||
<Show when={showTips()}>
|
<Show when={showTips()}>
|
||||||
<Tips />
|
<Tips />
|
||||||
</Show>
|
</Show>
|
||||||
|
|||||||
Reference in New Issue
Block a user