fix: add margin bottom 1 to prevent border vanish on ctrl+c

Signed-off-by: cpendery <cpendery@vt.edu>
This commit is contained in:
cpendery
2023-09-09 01:39:13 -04:00
parent b0314187c7
commit 6876d7a114
+3
View File
@@ -156,17 +156,20 @@ func (m Model) View() string {
if showDescriptionRight {
return lipgloss.
NewStyle().
MarginBottom(1).
MarginLeft(utils.Clamp(m.userInputCursorLocation, 0, maxLeftPaddingWhenJoined)).
Render(lipgloss.JoinHorizontal(lipgloss.Top, suggestionsView, descriptionView))
} else if showDescriptionLeft {
return lipgloss.
NewStyle().
MarginBottom(1).
MarginLeft(utils.Clamp(m.userInputCursorLocation-DescriptionWidth-BorderOffset, 0, maxLeftPaddingWhenJoined)).
Render(lipgloss.JoinHorizontal(lipgloss.Top, descriptionView, suggestionsView))
} else {
return lipgloss.
NewStyle().
MarginBottom(1).
MarginLeft(utils.Clamp(m.userInputCursorLocation, 0, maxLeftPadding)).
Render(lipgloss.JoinVertical(lipgloss.Left, suggestionsView, descriptionView))
}