feat(tui): improve scrollbar visibility and extend to all panels
Use block characters (█/░) with accent coloring for scrollbar thumb/track instead of box-drawing chars that blend with panel borders. Auto-derive scrollbar from content overflow in titledPanelH. Add scrollbar to logs and maintenance bottom panels.
This commit is contained in:
@@ -72,6 +72,20 @@ func (m Model) viewLogsStrip(width, maxLines int) string {
|
||||
return style.Render(strings.Join(visible, "\n"))
|
||||
}
|
||||
|
||||
func (m Model) filteredLogCount() int {
|
||||
count := 0
|
||||
for _, entry := range m.engine.GetLogs() {
|
||||
if strings.TrimSpace(entry.Message) == "" {
|
||||
continue
|
||||
}
|
||||
if m.logFilterImportant && !isImportantLog(classifyLog(entry.Message)) {
|
||||
continue
|
||||
}
|
||||
count++
|
||||
}
|
||||
return count
|
||||
}
|
||||
|
||||
func (m *Model) scrollLogs(delta int) {
|
||||
logs := m.engine.GetLogs()
|
||||
total := 0
|
||||
|
||||
Reference in New Issue
Block a user