Skip to content

fix: SG view layout overflow hiding status bar#86

Merged
larkly merged 1 commit intomainfrom
fix/sg-view-layout
Mar 29, 2026
Merged

fix: SG view layout overflow hiding status bar#86
larkly merged 1 commit intomainfrom
fix/sg-view-layout

Conversation

@larkly
Copy link
Copy Markdown
Owner

@larkly larkly commented Mar 29, 2026

Summary

  • Add MaxHeight to render.go content padding — lipgloss.Height() only pads short content but never truncates, so tall views pushed the status bar off screen
  • Fix secgroupview panel height calculation to account for all chrome (title, blank line, action bar, spacer, tab bar, status bar)
  • Remove trailing newlines from renderWide/renderNarrow that caused lipgloss to count extra empty lines
  • Add context-sensitive status bar hints per focused pane (selector, info, rules, servers, ports)
  • Add spacer between action bar and status bar for visual separation

Test plan

  • Switch to Sec Groups tab — status bar with cloud/region and hints visible at bottom
  • Action buttons visible above the status bar with spacing
  • Tab through all 5 panes — hints update per pane
  • Resize terminal — layout adjusts, status bar stays visible
  • Other tabs (Servers, Volumes, etc.) still render correctly

Add MaxHeight alongside Height in render.go to properly truncate
content that exceeds available space — lipgloss Height() only pads,
it never truncates.

Fix secgroupview panel height calculation to account for all chrome
lines (title, blank, action bar, spacer, tab bar, status bar).
Remove trailing newlines from renderWide/renderNarrow that caused
Height() to count extra empty lines. Add context-sensitive hints
per focused pane and spacer between action bar and status bar.
@larkly larkly merged commit ca2d28e into main Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant