@@ -27,9 +27,7 @@ type CommandType uint
27func (c CommandType) String() string { return []string{"System", "User", "MCP"}[c] }
27func (c CommandType) String() string { return []string{"System", "User", "MCP"}[c] }
30− sidebarCompactModeBreakpoint = 120
30+ sidebarCompactModeBreakpoint = 120
31− defaultCommandsDialogMaxHeight = 20
32− defaultCommandsDialogMaxWidth = 70
@@ -240,8 +238,8 @@ func commandsRadioView(sty *styles.Styles, selected CommandType, hasUserCmds boo
240// Draw implements [Dialog].
238// Draw implements [Dialog].
241func (c *Commands) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
239func (c *Commands) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor {
242 t := c.com.Styles
240 t := c.com.Styles
243− width := max(0, min(defaultCommandsDialogMaxWidth, area.Dx()-t.Dialog.View.GetHorizontalBorderSize()))
241+ width := max(0, min(defaultDialogMaxWidth, area.Dx()-t.Dialog.View.GetHorizontalBorderSize()))
244− height := max(0, min(defaultCommandsDialogMaxHeight, area.Dy()-t.Dialog.View.GetVerticalBorderSize()))
242+ height := max(0, min(defaultDialogHeight, area.Dy()-t.Dialog.View.GetVerticalBorderSize()))
245 if area.Dx() != c.windowWidth && c.selected == SystemCommands {
243 if area.Dx() != c.windowWidth && c.selected == SystemCommands {
246 c.windowWidth = area.Dx()
244 c.windowWidth = area.Dx()
247 // since some items in the list depend on width (e.g. toggle sidebar command),
245 // since some items in the list depend on width (e.g. toggle sidebar command),