fix(player): render help hint via content prop to avoid escaping
The babel-preset-solid JSX transform HTML-escapes static string children (< > → < >), which opentui renders verbatim — so the "< > seek" hint displayed its entities. Pass the string as the content prop instead, which bypasses the transform.
This commit is contained in:
@@ -112,9 +112,13 @@ export function PlayerPage() {
|
||||
/>
|
||||
|
||||
<box height={1} />
|
||||
<text fg={muted()}>
|
||||
{"P play/pause N next B prev < > seek h back"}
|
||||
</text>
|
||||
{/* content prop (not a text child): the babel-preset-solid JSX
|
||||
* transform HTML-escapes static string children (`<` → `<`),
|
||||
* which opentui renders verbatim; content bypasses that. */}
|
||||
<text
|
||||
fg={muted()}
|
||||
content={"P play/pause N next B prev < > seek h back"}
|
||||
/>
|
||||
</box>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user