@@ -31,28 +31,34 @@ func RenderDashboard(myses []MysisInfo, swarmMessages []SwarmMessageInfo, select
3131 var sections []string
3232
3333 // Header - retro-futuristic command center banner with hexagonal motif (matching logo)
34- // Build width-spanning lines (exactly `width` characters)
3534 if width < 20 {
3635 width = 20
3736 }
38- topLine := " ⬥" + strings.Repeat("═", width-3) + "⬥"
39- titleText := " ⬡ Z O E A N O V A ⬡ COMMAND CENTER"
40- // Center the title and pad to full width - use lipgloss.Width() for Unicode
41- titleDisplayWidth := lipgloss.Width(titleText)
42- titlePadding := (width - titleDisplayWidth) / 2
43- if titlePadding < 0 {
44- titlePadding = 0
45- }
46- titleLine := strings.Repeat(" ", titlePadding) + titleText
47- // Pad right side to fill width
48- titleLineWidth := lipgloss.Width(titleLine)
49- if titleLineWidth < width {
50- titleLine += strings.Repeat(" ", width-titleLineWidth)
37+
38+ // Define custom border with empty sides but diamonds in corners
39+ // We enable all borders to get the corners, but set sides to empty strings
40+ headerBorder := lipgloss.Border{
41+ Top: "═",
42+ Bottom: "═",
43+ Left: " ",
44+ Right: " ",
45+ TopLeft: "⬥",
46+ TopRight: "⬥",
47+ BottomLeft: "⬥",
48+ BottomRight: "⬥",
5149 }
52- bottomLine := " ⬥" + strings.Repeat("═", width-3) + "⬥"
5350
54- headerText := topLine + "\n" + titleLine + "\n" + bottomLine
55- header := headerStyle.Width(width).Render(headerText)
51+ headerStyle := lipgloss.NewStyle().
52+ Bold(true).
53+ Foreground(colorBrand).
54+ Background(colorBgAlt).
55+ Width(width-2). // Subtract 2 for the corner characters
56+ Align(lipgloss.Center).
57+ Border(headerBorder, true, true, true, true).
58+ BorderForeground(colorBrand)
59+
60+ titleText := "⬡ Z O E A N O V A ⬡ COMMAND CENTER"
61+ header := headerStyle.Render(titleText)
5662 sections = append(sections, header)
5763
5864 // Swarm message history - always visible with fixed height