Files
EvoScientist-Multi/EvoScientist/cli/widgets/user_message.py
T
Xi Zhang 3503142af6 feat(tui): UX polish — multi-line input, timestamps, update check & v0.0.3 (#85)
* feat: implement background update check and startup notifications

* feat: enhance user experience with timestamp notifications and UI polish

* feat: implement multi-line chat input with Enter-to-submit and modifier+Enter newline

* update

* update

* v0.0.3

* feat: improve code readability with consistent formatting in TUI and test files

* feat: update PyPI badge version to v0.0.3 in README files

* feat: add docstrings for test classes in test_update_check.py
2026-03-20 19:57:35 +00:00

27 lines
585 B
Python

"""User message widget."""
from __future__ import annotations
from rich.text import Text
from textual.widgets import Static
from .timestamp_mixin import TimestampClickMixin
class UserMessage(TimestampClickMixin, Static):
"""Displays user input with a blue prompt marker."""
DEFAULT_CSS = """
UserMessage {
height: auto;
margin: 1 0 0 0;
}
"""
def __init__(self, content: str) -> None:
renderable = Text.assemble(
("> ", "bold #38bdf8"),
(content, "#e5e7eb"),
)
super().__init__(renderable)