mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(ui): prevent collapsible toggle on tools with hideDetails (#8650)
Tools like Read, Task, and Skill set hideDetails=true because they have no expandable content. Clicking them toggled aria-expanded, which added a 1px border-bottom via CSS — producing a visible 2px empty box. Block the toggle when hideDetails is set so nothing happens on click.
This commit is contained in:
@@ -111,6 +111,7 @@ export function BasicTool(props: BasicToolProps) {
|
||||
|
||||
const handleOpenChange = (value: boolean) => {
|
||||
if (pending()) return
|
||||
if (props.hideDetails) return // kilocode_change
|
||||
if (props.locked && !value) return
|
||||
setOpen(value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user