xonecas.io
60255
Zn

Zoea-Nova / commit 71cbfa8

fix: prevent Unicode character overlap at line start

Adds leading space before Unicode characters (●, ○, ◌, ✖, ◆) that
appear at the start of styled content to prevent overlap with borders
and backgrounds.

Affected areas:
- Dashboard status bar (state indicators)
- Dashboard header (top/bottom borders)
- Focus view header
- Network indicator labels
- Help view title

Adjusts width calculations where needed to maintain proper alignment.

xonecas2026-02-05 71cbfa8b14bc70b10970df08a741643cfeac3d34 parent 12cf321

4 files changed

internal/tui/dashboard.go+3−3
@@ -35,7 +35,7 @@ func RenderDashboard(myses []MysisInfo, swarmMessages []SwarmMessageInfo, select
3535 if width < 20 {
3636 width = 20
3737 }
38- topLine := "◆" + strings.Repeat("═", width-2) + "◆"
38+ topLine := " ◆" + strings.Repeat("═", width-3) + "◆"
3939 titleText := " ⬡ Z O E A N O V A ⬡ COMMAND CENTER"
4040 // Center the title and pad to full width - use lipgloss.Width() for Unicode
4141 titleDisplayWidth := lipgloss.Width(titleText)
@@ -49,7 +49,7 @@ func RenderDashboard(myses []MysisInfo, swarmMessages []SwarmMessageInfo, select
4949 if titleLineWidth < width {
5050 titleLine += strings.Repeat(" ", width-titleLineWidth)
5151 }
52- bottomLine := "◆" + strings.Repeat("═", width-2) + "◆"
52+ bottomLine := " ◆" + strings.Repeat("═", width-3) + "◆"
5353
5454 headerText := topLine + "\n" + titleLine + "\n" + bottomLine
5555 header := headerStyle.Width(width).Render(headerText)
@@ -71,7 +71,7 @@ func RenderDashboard(myses []MysisInfo, swarmMessages []SwarmMessageInfo, select
7171 }
7272 }
7373 stats := fmt.Sprintf(
74- "%s %d %s %d %s %d %s %d",
74+ " %s %d %s %d %s %d %s %d",
7575 stateRunningStyle.Render("●"),
7676 running,
7777 stateIdleStyle.Render("○"),
internal/tui/focus.go+4−4
@@ -451,19 +451,19 @@ func LogEntryFromMemory(m *store.Memory, currentMysisID string) LogEntry {
451451
452452 // renderFocusHeader renders the focus view header spanning full width.
453453 func renderFocusHeader(mysisName string, width int) string {
454- // Format: ◆─── ⬡ MYSIS: name ⬡ ───◆ with dashes filling the remaining space
454+ // Format: ◆─── ⬡ MYSIS: name ⬡ ───◆ with dashes filling the remaining space
455455 // Use lipgloss.Width() for proper Unicode display width calculation
456456 titleText := " ⬡ MYSIS: " + mysisName + " ⬡ "
457457 titleDisplayWidth := lipgloss.Width(titleText)
458- // Total fixed chars: ◆ (1) on each side = 2
459- availableWidth := width - titleDisplayWidth - 2
458+ // Total fixed chars: space (1) + ◆ (1) on left, ◆ (1) on right = 3
459+ availableWidth := width - titleDisplayWidth - 3
460460 if availableWidth < 4 {
461461 availableWidth = 4
462462 }
463463 leftDashes := availableWidth / 2
464464 rightDashes := availableWidth - leftDashes
465465
466- line := "◆" + strings.Repeat("─", leftDashes) + titleText + strings.Repeat("─", rightDashes) + "◆"
466+ line := " ◆" + strings.Repeat("─", leftDashes) + titleText + strings.Repeat("─", rightDashes) + "◆"
467467 return headerStyle.Width(width).Render(line)
468468 }
469469
internal/tui/help.go+1−1
@@ -32,7 +32,7 @@ var helpItems = []helpItem{
3232 // RenderHelp renders the help overlay.
3333 func RenderHelp(width, height int) string {
3434 var lines []string
35- lines = append(lines, titleStyle.Render("◆═══ ⬡ COMMAND REFERENCE ⬡ ═══◆"))
35+ lines = append(lines, titleStyle.Render(" ◆═══ ⬡ COMMAND REFERENCE ⬡ ═══◆"))
3636 lines = append(lines, "")
3737
3838 maxKeyLen := 0
internal/tui/netindicator.go+2−2
@@ -111,11 +111,11 @@ func (n NetIndicator) View() string {
111111
112112 case NetActivityLLM:
113113 style = lipgloss.NewStyle().Foreground(colorAssistant).Bold(true)
114- label = "◆ LLM "
114+ label = " ◆ LLM "
115115
116116 case NetActivityMCP:
117117 style = lipgloss.NewStyle().Foreground(colorTeal).Bold(true)
118- label = "◆ MCP "
118+ label = " ◆ MCP "
119119 }
120120
121121 // Build the bouncing bar