mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 05:52:35 +08:00
Merge pull request #13047 from Kilo-Org/fix/tui-autocomplete-description-spacing
fix(tui): separate autocomplete descriptions from labels
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@kilocode/cli": patch
|
||||
---
|
||||
|
||||
Separate autocomplete item names from their descriptions in the TUI.
|
||||
@@ -831,13 +831,14 @@ export function Autocomplete(props: {
|
||||
moveTo(index)
|
||||
}}
|
||||
onMouseUp={() => select()}
|
||||
gap={1} // kilocode_change - keep descriptions separated from labels in flex layout
|
||||
>
|
||||
<text fg={index === store.selected ? selectedForeground(theme) : theme.text} flexShrink={0}>
|
||||
{option().display}
|
||||
</text>
|
||||
<Show when={option().description}>
|
||||
<text fg={index === store.selected ? selectedForeground(theme) : theme.textMuted} wrapMode="none">
|
||||
{" " + option().description?.trimStart()}
|
||||
{option().description?.trimStart()}{/* kilocode_change */}
|
||||
</text>
|
||||
</Show>
|
||||
</box>
|
||||
|
||||
Reference in New Issue
Block a user