mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-14 00:10:03 +00:00
subagent footer tab fmt
This commit is contained in:
parent
98db70c62e
commit
10df4bba7d
1 changed files with 5 additions and 9 deletions
|
|
@ -44,17 +44,13 @@ function tabText(tab: FooterSubagentTab, slot: string, count: number, width: num
|
|||
return `[${slot}]`
|
||||
}
|
||||
|
||||
const label = `[${slot}] ${tab.label}`
|
||||
const prefix = `[${slot}]`
|
||||
if (count >= 5 || perTab < 24) {
|
||||
return label
|
||||
return prefix
|
||||
}
|
||||
|
||||
const detail = tab.description || tab.title
|
||||
if (!detail) {
|
||||
return label
|
||||
}
|
||||
|
||||
return `${label} · ${detail}`
|
||||
const label = tab.description || tab.title || tab.label
|
||||
return `${prefix} ${label}`
|
||||
}
|
||||
|
||||
export function RunFooterSubagentTabs(props: {
|
||||
|
|
@ -94,7 +90,7 @@ export function RunFooterSubagentTabs(props: {
|
|||
id="run-direct-footer-subagent-tabs"
|
||||
width="100%"
|
||||
height={SUBAGENT_TAB_ROWS}
|
||||
paddingLeft={2}
|
||||
paddingLeft={1}
|
||||
paddingRight={2}
|
||||
paddingBottom={1}
|
||||
flexDirection="row"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue