From 76d90bc70f1d8ecad2c081c4a4189c00dc7d88b2 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Wed, 18 Jun 2025 16:46:11 +0200 Subject: [PATCH] chore: change the min width to 120 --- internal/tui/components/dialogs/commands/commands.go | 2 +- internal/tui/page/chat/chat.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/tui/components/dialogs/commands/commands.go b/internal/tui/components/dialogs/commands/commands.go index bce04a20eca8cecb8dddd14cddd596a897ae1670..3008f8368da33a97b22742ea2b6d1074f68d0c5b 100644 --- a/internal/tui/components/dialogs/commands/commands.go +++ b/internal/tui/components/dialogs/commands/commands.go @@ -264,7 +264,7 @@ func (c *commandDialogCmp) defaultCommands() []Command { }) } // Only show toggle compact mode command if window width is larger than compact breakpoint (90) - if c.wWidth > 90 && c.sessionID != "" { + if c.wWidth > 120 && c.sessionID != "" { commands = append(commands, Command{ ID: "toggle_sidebar", Title: "Toggle Sidebar", diff --git a/internal/tui/page/chat/chat.go b/internal/tui/page/chat/chat.go index e1e85cc65f9d9c06ee5ab726b38f810da08a0d7b..0527e0c3ac960890bb58cd996ebbe22f3b4d369d 100644 --- a/internal/tui/page/chat/chat.go +++ b/internal/tui/page/chat/chat.go @@ -26,7 +26,7 @@ import ( var ChatPageID page.PageID = "chat" -const CompactModeBreakpoint = 90 // Width at which the chat page switches to compact mode +const CompactModeBreakpoint = 120 // Width at which the chat page switches to compact mode type ( OpenFilePickerMsg struct{}