Skip to content

fix: serial panel height grows with output instead of scrolling#59

Merged
zevorn merged 1 commit intomainfrom
fix/serial-panel-fixed-height
Mar 17, 2026
Merged

fix: serial panel height grows with output instead of scrolling#59
zevorn merged 1 commit intomainfrom
fix/serial-panel-fixed-height

Conversation

@zevorn
Copy link
Copy Markdown
Owner

@zevorn zevorn commented Mar 17, 2026

Problem

Serial output area used min-height: 360px; flex: 1 — when content exceeded the minimum, the flex container expanded, pushing the entire page layout taller instead of scrolling.

Fix

  • serial-output: min-height: 360pxheight: 0 (flex:1 allocates all height from grid, content scrolls via overflow-y:auto)
  • serial-panel: add min-height: 480px as a floor when flash panel is shorter

Test plan

  • Serial panel stays fixed height when output accumulates
  • Output scrolls within the panel
  • Panel still matches flash panel height via grid stretch
  • Expand mode still works
  • Mobile stacked layout unaffected

serial-output used min-height:360px + flex:1 which allowed the
flex container to expand when content exceeded the minimum, pushing
the page layout taller.

Fix: use height:0 + flex:1 so the output area is sized entirely by
flex allocation (from grid stretch), never by content.  overflow-y:auto
ensures scrolling.  serial-panel gets min-height:480px as a floor.

Signed-off-by: Chao Liu <chao.liu.zevorn@gmail.com>
@zevorn zevorn merged commit 1bd8ac8 into main Mar 17, 2026
1 check passed
@zevorn zevorn deleted the fix/serial-panel-fixed-height branch March 19, 2026 01:47
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