@@ -35,9 +35,6 @@ import { AlertTriangle } from "lucide-react";
3535import {
3636 isListBeatsView , parseBeatsView ,
3737} from "@/lib/beats-view" ;
38- import {
39- getTerminalViewportInset ,
40- } from "@/lib/terminal-viewport" ;
4138import { useBeatsQuery } from "./use-beats-query" ;
4239import { useAgentInfoMap } from "./use-agent-info-map" ;
4340import { useBulkActions } from "./use-bulk-actions" ;
@@ -79,9 +76,6 @@ function useBeatsPageState() {
7976 const { activeRepo, registeredRepos } = useAppStore ( ) ;
8077 const {
8178 terminals,
82- panelOpen,
83- panelMinimized,
84- panelHeight,
8579 } = useTerminalStore ( ) ;
8680
8781 const shippingByBeatId = terminals . reduce <
@@ -117,24 +111,14 @@ function useBeatsPageState() {
117111 beats, detailBeatId, detailRepo, isListView,
118112 activeRepo,
119113 } ) ;
120- const listViewportInset =
121- beatsView === "queues" || beatsView === "active"
122- ? getTerminalViewportInset ( {
123- panelOpen,
124- panelMinimized,
125- panelHeight,
126- terminalCount : terminals . length ,
127- } )
128- : "0px" ;
129-
130114 return {
131115 beatsView, isListView, viewPhase,
132116 isActiveView, activeRepo,
133117 searchQuery, detailBeatId, detailRepo,
134118 beats, isLoading, loadError, isDegradedError,
135119 hasRollingAncestor, showRepoColumn,
136120 agentInfoByBeatId, shippingByBeatId,
137- listViewportInset , streamingProgress,
121+ streamingProgress,
138122 ...bulk , ...actions , ...detail ,
139123 } ;
140124}
@@ -262,7 +246,6 @@ function BeatsViewBody({
262246 onShipBeat = { s . handleShipBeat }
263247 shippingByBeatId = { s . shippingByBeatId }
264248 onAbortShipping = { s . handleAbortShipping }
265- listViewportInset = { s . listViewportInset }
266249 streamingProgress = {
267250 s . streamingProgress
268251 }
@@ -289,7 +272,6 @@ interface BeatsListContentProps {
289272 onAbortShipping : (
290273 beatId : string ,
291274 ) => Promise < void > ;
292- listViewportInset : string ;
293275 streamingProgress : StreamingProgress ;
294276}
295277
@@ -303,7 +285,7 @@ function BeatsListContent(
303285 selectionVersion, searchQuery,
304286 onOpenBeat, onShipBeat,
305287 shippingByBeatId, onAbortShipping,
306- listViewportInset , streamingProgress,
288+ streamingProgress,
307289 } = props ;
308290
309291 const isStreamActive =
@@ -339,10 +321,7 @@ function BeatsListContent(
339321 && beats . length === 0 ;
340322
341323 return (
342- < div
343- className = "overflow-x-auto"
344- style = { { paddingBottom : listViewportInset } }
345- >
324+ < div className = "overflow-x-auto" >
346325 { isDegradedError && (
347326 < DegradedBanner message = { loadError } />
348327 ) }
0 commit comments