Skip to content

feat(components): intrinsic measurement for terminal, table and codeblock #11

Description

@LeadcodeDev

Goal: Terminal, Table and Codeblock measure their own content so they size correctly inside flex containers without explicit width/height.

Evidence: box_builder.rs:222-232 registers intrinsics only for Text, GradientText, Caption, Kbd, Counter, Badge.

Invariants: explicit size still wins; auto_scroll semantics unchanged.

Acceptance: a terminal without explicit size inside a flex column gets a non-zero measured height; layout tests cover the three components.

Files: crates/rustmotion-components/src/intrinsic.rs, box_builder.rs, the three painters.

Verify: cargo test --workspace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions