Skip to content

Commit 26d6935

Browse files
feat: add scrollable max-height to task list containers (#734)
Co-authored-by: open-agents-bot[bot] <260704009+open-agents-bot[bot]@users.noreply.github.com>
1 parent 345374f commit 26d6935

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/web/components/pinned-todo-panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export function PinnedTodoPanel({ todos }: PinnedTodoPanelProps) {
155155

156156
{/* Expanded todo list */}
157157
{!isMinimized && (
158-
<div className="border-t border-border/40 px-3 py-2">
158+
<div className="max-h-48 overflow-y-auto border-t border-border/40 px-3 py-2">
159159
<div className="space-y-1">
160160
{todos.map((todo, index) => {
161161
if (!todo) return null;

apps/web/components/tool-call/renderers/todo-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export function TodoRenderer({
147147

148148
const expandedContent =
149149
todos.length > 0 ? (
150-
<div className="space-y-0.5 pl-6">
150+
<div className="max-h-48 space-y-0.5 overflow-y-auto pl-6">
151151
{todos.map((todo, i) => (
152152
<TodoItem key={todo.id ?? i} todo={todo} />
153153
))}

0 commit comments

Comments
 (0)