Skip to content

Text truncation with ellipsis #304

@valadaptive

Description

@valadaptive

See the CSS text-overflow property.

If we want to truncate some text rather than wrap it, it'd be nice to do that cleanly with an ellipsis instead of just clipping it:

Image

egui supports arbitrary text truncation strings (Firefox also extends text-overflow to support that too); I'm not sure how difficult that would be.

It seems the appearance (font and size) of the ellipsis is determined in CSS by the "parent" style, which requires us to define that as well--see #291.

This is necessary for porting egui to Parley.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions