fix(ci): restore cross-platform checks
CI / go (push) Has been cancelled
CI / build (darwin, macos-14) (push) Has been cancelled
CI / build (windows, windows-2025) (push) Has been cancelled
Release / build (amd64, darwin, macos-latest) (push) Has been cancelled
Release / build (amd64, linux, ubuntu-latest) (push) Has been cancelled
Release / build (amd64, windows, windows-latest) (push) Has been cancelled
Release / build (arm64, darwin, macos-latest) (push) Has been cancelled
Release / build (arm64, linux, ubuntu-latest) (push) Has been cancelled
Release / release (push) Has been cancelled
Release / update-homebrew (push) Has been cancelled

This commit is contained in:
Bjarne Øverli
2026-07-21 23:15:49 +02:00
parent bac2475088
commit 7404285d1f
6 changed files with 16 additions and 69 deletions
-10
View File
@@ -88,16 +88,6 @@ func (m Model) effectivePlaylistVisible() int {
return min(m.plVisible, m.layout.bodyRows)
}
// recomputeChrome preserves the existing layout-refresh seam for callers that
// change an overlay or visualizer mode.
func (m *Model) recomputeChrome() {
m.recomputeLayout()
}
func (m *Model) invalidateChrome() {
m.recomputeLayout()
}
func (m *Model) refreshChrome() {
m.recomputeLayout()
}
-5
View File
@@ -1216,8 +1216,3 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, nil
}
// restorePanelWidth resets PanelWidth to the correct value based on compact mode.
func (m *Model) restorePanelWidth() {
m.recomputeLayout()
}
-45
View File
@@ -2,7 +2,6 @@ package model
import (
"fmt"
"math"
"slices"
"strings"
"time"
@@ -911,50 +910,6 @@ func (m Model) renderHelp() string {
}
}
// helpHint is a rendered help key with an associated display priority.
type helpHint struct {
text string
priority int
}
// fitHints drops lowest-priority hints until they fit within maxWidth.
// Widths are pre-computed once to avoid repeated lipgloss.Width calls.
func fitHints(hints []helpHint, maxWidth int) string {
active := make([]bool, len(hints))
widths := make([]int, len(hints))
var total int
for i, h := range hints {
active[i] = true
widths[i] = lipgloss.Width(h.text)
total += widths[i]
}
for total > maxWidth {
// Find lowest-priority active hint and drop it.
minPri := math.MaxInt
minIdx := -1
for i, h := range hints {
if active[i] && h.priority < minPri {
minPri = h.priority
minIdx = i
}
}
if minIdx < 0 {
break
}
active[minIdx] = false
total -= widths[minIdx]
}
var sb strings.Builder
for i, h := range hints {
if active[i] {
sb.WriteString(h.text)
}
}
return sb.String()
}
// renderBottomStatus renders the bottom status line: speed (left) and
// network stats (right) on the same row.
func (m Model) renderBottomStatus() string {