on main help sign in
fix: make the check for sidebar toggle inclusive (#2013)
699ae40Kujtim Hoxha
internal/ui/dialog/commands.go+1−1
@@ -422,7 +422,7 @@ func (c *Commands) defaultCommands() []*CommandItem {
422 }
422 }
423 }
423 }
424 // Only show toggle compact mode command if window width is larger than compact breakpoint (120)
424 // Only show toggle compact mode command if window width is larger than compact breakpoint (120)
425− if c.windowWidth > sidebarCompactModeBreakpoint && c.sessionID != "" {
425+ if c.windowWidth >= sidebarCompactModeBreakpoint && c.sessionID != "" {
426 commands = append(commands, NewCommandItem(c.com.Styles, "toggle_sidebar", "Toggle Sidebar", "", ActionToggleCompactMode{}))
426 commands = append(commands, NewCommandItem(c.com.Styles, "toggle_sidebar", "Toggle Sidebar", "", ActionToggleCompactMode{}))
427 }
427 }
428 if c.sessionID != "" {
428 if c.sessionID != "" {