Work workspace with runs, change and facts tabs; vim keys; responsive Board; theme file

This commit is contained in:
Sam
2026-11-10 14:00:58 +11:00
parent 1bfb9b05ed
commit 4e3c955350
7 changed files with 416 additions and 20 deletions

View File

@@ -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")