Skip to content

fix: serial panel aligns with flash panel without growing#63

Merged
zevorn merged 1 commit intomainfrom
fix/serial-panel-align-v2
Mar 17, 2026
Merged

fix: serial panel aligns with flash panel without growing#63
zevorn merged 1 commit intomainfrom
fix/serial-panel-align-v2

Conversation

@zevorn
Copy link
Copy Markdown
Owner

@zevorn zevorn commented Mar 17, 2026

Problem

Serial panel either didn't match flash panel height, or grew unbounded with content.

Root Cause

Grid items have implicit min-height: auto which prevents them from being smaller than their content. When serial output grows, it pushes the grid row taller.

Fix

  • align-items: stretch — both panels equal height (determined by flash panel)
  • serial-panel: min-height: 0 — overrides the implicit min-height: auto, so the panel respects the grid row height instead of being pushed by content
  • serial-output: height: 0; flex: 1; overflow-y: auto — fills remaining space, scrolls
  • serial-titlebar + serial-input-bar: flex-shrink: 0 — fixed height

The serial panel must equal flash panel height (grid stretch) while
preventing serial output from growing the container.

Solution:
- flash-layout: align-items:stretch (both panels equal height)
- serial-panel: min-height:0 overrides grid default min-height:auto,
  which is the root cause of content pushing the grid row taller
- serial-output: height:0 + flex:1 fills remaining space, scrolls
- serial-titlebar / serial-input-bar: flex-shrink:0 stays fixed

Signed-off-by: Chao Liu <chao.liu.zevorn@gmail.com>
@zevorn zevorn force-pushed the fix/serial-panel-align-v2 branch from db277b5 to 4d99ef1 Compare March 17, 2026 15:20
@zevorn zevorn merged commit 1244702 into main Mar 17, 2026
1 check passed
@zevorn zevorn deleted the fix/serial-panel-align-v2 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