-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
I haven't checked what else might have changed, but after updating to the latest Rich (14.3.0) released earlier today, I found that RichLog.write with expand=True isn't working as expected.
Here's a simple example with before and after screenshots for comparison:
| rich 14.2.0 | rich 14.3.0 |
|---|---|
![]() |
![]() |
from importlib.metadata import version
from rich.text import Text
from textual.app import App, ComposeResult
from textual.widgets import RichLog
class ExampleApp(App):
def compose(self) -> ComposeResult:
yield RichLog(min_width=20)
def on_mount(self) -> None:
log = self.query_one(RichLog)
log.write(
Text(f"rich {version('rich')}", style="on red", justify="right"),
expand=True,
)
if __name__ == "__main__":
app = ExampleApp()
app.run()Metadata
Metadata
Assignees
Labels
No labels

