summaryrefslogtreecommitdiff
path: root/internal/ui/table.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-28 12:09:06 +0300
committerPaul Buetow <paul@buetow.org>2025-06-28 12:09:06 +0300
commit4ee76fb7666bcb20562cf07d95a9e7c03ed0bb86 (patch)
tree08505a269951c4b7e3cc9288eeaa74aeecb5efd1 /internal/ui/table.go
parent99280920a5bc7d655c4ca8f1f06f2c66b208986f (diff)
fix: enable scrolling in help screen viewport
- Fixed viewport update handling in main Update function - Viewport now properly receives mouse and scroll events - Content is set immediately when help is toggled - Resolves issue where help screen couldn't scroll on small terminals 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/ui/table.go')
-rw-r--r--internal/ui/table.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go
index a0a82c5..a430dcf 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -420,9 +420,12 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m.handleNormalMode(msg)
}
- // Default case - pass through to table
+ // Default case - pass through to appropriate component
if m.showHelp {
- return m, nil
+ // Update help viewport for mouse wheel and other events
+ var cmd tea.Cmd
+ m.helpViewport, cmd = m.helpViewport.Update(msg)
+ return m, cmd
}
var cmd tea.Cmd