rio icon indicating copy to clipboard operation
rio copied to clipboard

Split `wrap` parameter of `rio.Text` into two different parameters

Open Sn3llius opened this issue 8 months ago • 2 comments

Description:

The current wrap parameter of rio.Text combines two functionalities: wrapping text and ellipsizing text when it reaches the end of the line. This combination is confusing and should be separated into two distinct parameters for clarity.

Current Implementation:

wrap: bool | Literal["ellipsize"] = False

Proposed Implementation:

wrap: bool = False
ellipsize: bool = False

By splitting these functionalities, we can improve code readability and make the behavior of text handling more explicit.

Sn3llius avatar Jun 29 '24 15:06 Sn3llius