Skip to content

Commit 744aca5

Browse files
samejrericallam
authored andcommitted
Make sure the scroll view knows if it’s at the top or bottom even if you toggle views
1 parent 65962c8 commit 744aca5

File tree

1 file changed

+2
-2
lines changed
  • apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.streams.$streamKey

1 file changed

+2
-2
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.streams.$streamKey/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export function RealtimeStreamViewer({
193193
clearTimeout(scrollTimeout);
194194
}
195195
};
196-
}, [chunks.length]);
196+
}, [chunks.length, viewMode]);
197197

198198
// Auto-scroll to bottom when new chunks arrive, if we're at the bottom
199199
useEffect(() => {
@@ -210,7 +210,7 @@ export function RealtimeStreamViewer({
210210
return (
211211
<div className="flex h-full flex-col overflow-hidden border-t border-grid-bright">
212212
{/* Header */}
213-
<div className="flex flex-wrap items-center justify-between gap-2 border-b border-grid-bright bg-background-bright px-3 py-3">
213+
<div className="flex flex-wrap items-center justify-between gap-2 border-b border-grid-bright bg-background-bright px-3 py-2.5">
214214
<div className="flex items-center gap-1.5">
215215
<TooltipProvider>
216216
<Tooltip>

0 commit comments

Comments
 (0)