Work workspace with runs, change and facts tabs; vim keys; responsive Board; theme file
This commit is contained in:
@@ -79,7 +79,8 @@ func (p panel) render(lines []string) string {
|
||||
top := border.Render("╭─") + panelTitleStyle().Render(title) + tabs +
|
||||
border.Render(strings.Repeat("─", fill)) + right + border.Render("╮")
|
||||
|
||||
// Body: every line exactly the inner width, no exceptions.
|
||||
// Body: every line exactly the inner width, no exceptions. Content is
|
||||
// inset by one column so text never touches the border.
|
||||
out := make([]string, 0, p.height)
|
||||
out = append(out, top)
|
||||
side := border.Render("│")
|
||||
@@ -88,7 +89,7 @@ func (p panel) render(lines []string) string {
|
||||
if i < len(lines) {
|
||||
line = lines[i]
|
||||
}
|
||||
out = append(out, side+padTo(line, bw)+side)
|
||||
out = append(out, side+" "+padTo(line, bw-1)+side)
|
||||
}
|
||||
out = append(out, border.Render("╰"+strings.Repeat("─", p.width-2)+"╯"))
|
||||
return strings.Join(out, "\n")
|
||||
|
||||
Reference in New Issue
Block a user