Skip to content

Commit cbc0941

Browse files
committed
chore: cleanup
1 parent 75e3e86 commit cbc0941

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/agent_chat_cli/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self) -> None:
3333
)
3434

3535
def compose(self) -> ComposeResult:
36-
with VerticalScroll(id="container"):
36+
with VerticalScroll():
3737
yield Header()
3838
yield ChatHistory()
3939
yield ThinkingIndicator()

src/agent_chat_cli/utils/message_bus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from typing import TYPE_CHECKING
33

44
from textual.widgets import Input, Markdown
5+
from textual.containers import VerticalScroll
56

67
from agent_chat_cli.components.chat_history import ChatHistory, MessagePosted
78
from agent_chat_cli.components.thinking_indicator import ThinkingIndicator
@@ -35,7 +36,7 @@ async def handle_agent_message(self, message: AgentMessage) -> None:
3536
async def _scroll_to_bottom(self) -> None:
3637
"""Scroll the container to the bottom after a slight pause."""
3738
await asyncio.sleep(0.1)
38-
container = self.app.query_one("#container")
39+
container = self.app.query_one(VerticalScroll)
3940
container.scroll_end(animate=False, immediate=True)
4041

4142
async def _handle_stream_event(self, message: AgentMessage) -> None:

src/agent_chat_cli/utils/styles.tcss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ Flex {
2323
height: auto;
2424
}
2525

26-
#container {
27-
layout: vertical;
26+
VerticalScroll {
2827
padding-top: 1;
2928
padding-left: 2;
3029
background: transparent;

0 commit comments

Comments
 (0)