Compare commits

...

3 Commits

Author SHA1 Message Date
lerko 6e936ecce3 style(tui): adjust monitor/detail split to 60/40
CI / test (pull_request) Successful in 1m49s
CI / lint (pull_request) Successful in 1m17s
CI / vulncheck (pull_request) Successful in 56s
Gives monitors panel more room for columns while detail sidebar
content stacks vertically and doesn't need the extra width.
2026-06-30 21:12:00 -04:00
lerko 04cf12f52b style(tui): match detail panel footer to hotbar styling
Detail panel footer now uses accent keys, muted descriptions, and dot
separators — same visual style as the bottom hotbar.
2026-06-30 21:07:47 -04:00
lerko 33df597dda fix(tui): merge SLA footer into single line
Period keys and Esc Back now render on one line instead of two.
2026-06-30 20:59:04 -04:00
2 changed files with 9 additions and 16 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ func (m Model) viewMonitorsLayout() string {
}
remaining := availW - maintW
if showDetail {
monW = remaining * 45 / 100
monW = remaining * 60 / 100
detailW = remaining - monW
} else {
monW = remaining
+8 -15
View File
@@ -210,34 +210,27 @@ func (m Model) detailTypeLine(site models.Site) []string {
return parts
}
func (m Model) detailKeys() string {
return m.st.subtleStyle.Render("[e] Edit [h] History [s] SLA [Esc] Back")
}
func (m Model) detailFooter(width int) string {
label := m.st.subtleStyle
var lines []string
dot := m.st.subtleStyle.Render(" · ")
var parts []string
switch m.detailMode {
case detailSLA:
var keys []string
for i, p := range slaPeriods {
k := fmt.Sprintf("[%s] %s", p.key, p.label)
if i == m.slaPeriodIdx {
keys = append(keys, m.st.titleStyle.Render(k))
parts = append(parts, m.st.titleStyle.Render(p.key)+" "+m.st.titleStyle.Render(p.label))
} else {
keys = append(keys, label.Render(k))
parts = append(parts, m.hotkey(p.key, p.label))
}
}
lines = append(lines, " "+strings.Join(keys, " "))
lines = append(lines, " "+label.Render("[Esc] Back"))
parts = append(parts, m.hotkey("Esc", "Back"))
case detailHistory:
lines = append(lines, " "+label.Render("[Esc] Back"))
parts = append(parts, m.hotkey("Esc", "Back"))
default:
lines = append(lines, " "+m.detailKeys())
parts = append(parts, m.hotkey("e", "Edit"), m.hotkey("h", "History"), m.hotkey("s", "SLA"), m.hotkey("Esc", "Back"))
}
content := strings.Join(lines, "\n")
content := " " + strings.Join(parts, dot)
return lipgloss.NewStyle().Width(width).MaxWidth(width).Render(content)
}