on main help sign in
fix: width related commands not showing
commitdbb998c76e336b6e57a57a11a5478726a3ad7c93 authorKujtim Hoxha <kujtimii.h@gmail.com> dateSun 3 Aug 2025, 22:56 (1 year ago) parentcb6642b
1 file changed+4−2
internal/tui/components/dialogs/commands/commands.go+4−2
internal/tui/components/dialogs/commands/commands.go+4−2
@@ -119,7 +119,10 @@ func (c *commandDialogCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
119119 case tea.WindowSizeMsg:
120120 c.wWidth = msg.Width
121121 c.wHeight = msg.Height
122− return c, c.commandList.SetSize(c.listWidth(), c.listHeight())
122+ return c, tea.Batch(
123+ c.SetCommandType(c.commandType),
124+ c.commandList.SetSize(c.listWidth(), c.listHeight()),
125+ )
123126 case tea.KeyPressMsg:
124127 switch {
125128 case key.Matches(msg, c.keyMap.Select):
@@ -318,7 +321,6 @@ func (c *commandDialogCmp) defaultCommands() []Command {
318321 })
319322 }
320323 }
321−
322324 // Only show toggle compact mode command if window width is larger than compact breakpoint (90)
323325 if c.wWidth > 120 && c.sessionID != "" {
324326 commands = append(commands, Command{