Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
7cb9d4fa01
commit
d311a3ca4a
2 files changed
+21
-1
No files matched your search
@@ -3,6 +3,7 @@ package cli
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"gitea.mynodes.xyz/ilker/llmgw/internal/version"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/charmbracelet/x/ansi"
|
||||
)
|
||||
@@ -60,7 +61,12 @@ func (f frame) render() string {
|
||||
w, h := max(f.Width, 60), max(f.Height, 16)
|
||||
|
||||
title := " " + f.Title
|
||||
right := f.Where + " "
|
||||
// The version on every screen, top right: which build is being looked
|
||||
// at is the first question about anything it shows.
|
||||
right := version.Version + " "
|
||||
if f.Where != "" {
|
||||
right = f.Where + " · " + right
|
||||
}
|
||||
gap := max(1, w-ansi.StringWidth(title)-ansi.StringWidth(right))
|
||||
bar := fBar.Render(title + strings.Repeat(" ", gap) + right)
|
||||
|
||||
|
||||
Reference in new issue
Block a user