diff --git a/internal/ui/dialog/sessions.go b/internal/ui/dialog/sessions.go index 7f9bb952617e86708bcd1bf5d02c007029e3e53e..6f9b7724a796818c789e19ba9455c23e7e51c9b4 100644 --- a/internal/ui/dialog/sessions.go +++ b/internal/ui/dialog/sessions.go @@ -229,9 +229,9 @@ func (s *Session) Cursor() *tea.Cursor { // Draw implements [Dialog]. func (s *Session) Draw(scr uv.Screen, area uv.Rectangle) *tea.Cursor { t := s.com.Styles - width := max(0, min(defaultDialogMaxWidth, area.Dx())) - height := max(0, min(defaultDialogHeight, area.Dy())) - innerWidth := width - t.Dialog.View.GetHorizontalFrameSize() - 2 + width := max(0, min(defaultDialogMaxWidth, area.Dx()-t.Dialog.View.GetHorizontalBorderSize())) + height := max(0, min(defaultDialogHeight, area.Dy()-t.Dialog.View.GetVerticalBorderSize())) + innerWidth := width - t.Dialog.View.GetHorizontalFrameSize() heightOffset := t.Dialog.Title.GetVerticalFrameSize() + titleContentHeight + t.Dialog.InputPrompt.GetVerticalFrameSize() + inputContentHeight + t.Dialog.HelpView.GetVerticalFrameSize() +