Skip to content

Commit fef4d7e

Browse files
fCopilot
andauthored
Update pkg/jsonutils/jsonutils.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 30d9ee7 commit fef4d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/jsonutils/jsonutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func formatToolsList(tools any) (string, error) {
133133
descColWidth := termWidth - nameColWidth - 5 // Leave some margin
134134

135135
if descColWidth < 10 {
136-
descColWidth = 40 // Minimum width if terminal is too narrow
136+
descColWidth = max(10, termWidth - nameColWidth - 5) // Adaptive minimum width
137137
}
138138

139139
for _, t := range toolsSlice {

0 commit comments

Comments
 (0)