feat/fix: properly layout the messages viewport and the inputbox

This commit is contained in:
2021-12-25 21:45:58 +02:00
parent f56048fbf7
commit b32af9d55f
7 changed files with 53 additions and 58 deletions
+1 -12
View File
@@ -19,23 +19,12 @@ package ui
import "github.com/charmbracelet/lipgloss"
var (
BorderRound = lipgloss.Border{
Top: "─",
Bottom: "─",
Left: "│",
Right: "│",
TopLeft: "╭",
TopRight: "╮",
BottomLeft: "╰",
BottomRight: "╯",
}
MainStyle = lipgloss.NewStyle().
Width(172).
Height(40)
DialogStyle = lipgloss.NewStyle().
Border(BorderRound, true).
Border(lipgloss.RoundedBorder(), true).
Align(lipgloss.Center).
Width(50).
Padding(3, 6).