Fix tool expand hint punctuation styling

closes #5359
This commit is contained in:
Mario Zechner
2026-06-04 23:44:25 +02:00
parent ca66adfe60
commit c45787411e
8 changed files with 14 additions and 8 deletions

View File

@@ -176,10 +176,12 @@ export class BashExecutionComponent extends Container {
// Show how many lines are hidden (collapsed preview)
if (hiddenLineCount > 0) {
if (this.expanded) {
statusParts.push(`(${keyHint("app.tools.expand", "to collapse")})`);
statusParts.push(
`${theme.fg("muted", "(")}${keyHint("app.tools.expand", "to collapse")}${theme.fg("muted", ")")}`,
);
} else {
statusParts.push(
`${theme.fg("muted", `... ${hiddenLineCount} more lines`)} (${keyHint("app.tools.expand", "to expand")})`,
`${theme.fg("muted", `... ${hiddenLineCount} more lines (`)}${keyHint("app.tools.expand", "to expand")}${theme.fg("muted", ")")}`,
);
}
}