mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-16 06:33:53 +00:00
fix: restore pre-v2 progress bar fill and viewport scroll behavior
This commit is contained in:
3 files changed
+6
-11
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user