Change summary
internal/ui/dialog/sessions.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Detailed changes
@@ -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() +