Skip to content

Feature request: maxLines #71

@lff5

Description

@lff5

Hi.

I need expandable block (in collapsed state) to have limited height, but not cut off text from any height.
I could just clip the MD block to some maxHeight but then the last line would be randomly clipped off which is ugly. The content may have large headers, multiple short paragraphs (aka separators). Thus pre-calculating expected height would be complicated.

Is there a reasonable way to achieve such result?
Also custom "Read More" widget/TextSpan/String button at the end of last visible line would be super nice :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions