fix: restore pre-v2 progress bar fill and viewport scroll behavior

This commit is contained in:
aykhans committed 2026-08-17 18:57:33 +04:00
1 parent d08b6dc222
commit d68c557dd3
3 files changed
+6 -11

No files matched your search

+1
View File
@@ -858,6 +858,7 @@ func (m *printConfigModel) handleResize(msg tea.WindowSizeMsg) {
if !m.ready {
m.viewport = viewport.New(viewport.WithWidth(width), viewport.WithHeight(height))
m.viewport.SetHorizontalStep(0)
m.viewport.SetContent(m.contentWithLineNumbers())
m.ready = true
} else {
+4 -1
View File
@@ -242,7 +242,10 @@ func (s sarin) streamProgress(
var program *tea.Program
if total > 0 {
model := progressModel{
progress: progress.New(progress.WithColors(lipgloss.Color("#151594"), lipgloss.Color("#00D4FF"))),
progress: progress.New(
progress.WithColors(lipgloss.Color("#151594"), lipgloss.Color("#00D4FF")),
progress.WithFillCharacters(progress.DefaultFullCharFullBlock, progress.DefaultEmptyCharBlock),
),
startTime: time.Now(),
logs: make([]string, 8),
counter: counter,