@@ -18,13 +18,15 @@ import { AndroidSheetHeader } from "../../components/AndroidScreenHeader";
1818import { AppText as Text } from "../../components/AppText" ;
1919import { SymbolView } from "../../components/AppSymbol" ;
2020import { ControlPillMenu } from "../../components/ControlPill" ;
21+ import { MaterialScreenContent } from "../../components/MaterialScreenContent" ;
2122import { scopedThreadKey } from "../../lib/scopedEntities" ;
2223import { useUniwindTheme } from "../../lib/useUniwindTheme" ;
2324import { nativeHeaderScrollEdgeEffects } from "../../native/StackHeader" ;
2425import { useAssetUrl } from "../../state/assets" ;
2526import { beginQueuedRunEdit , useQueuedRunEdit } from "../../state/queued-run-edit" ;
2627import { environmentThreadDetails , threadEnvironment } from "../../state/threads" ;
2728import { useAtomCommand } from "../../state/use-atom-command" ;
29+ import { useAdaptiveWorkspaceLayout } from "../layout/AdaptiveWorkspaceLayout" ;
2830import {
2931 buildCancelQueuedRunCommand ,
3032 resolveQueueDragBeforeRunId ,
@@ -50,6 +52,7 @@ export function useThreadQueuedCount(target: QueueTarget) {
5052}
5153
5254export function ThreadQueueSheet ( { route } : StaticScreenProps < QueueTarget > ) {
55+ const { layout } = useAdaptiveWorkspaceLayout ( ) ;
5356 const target = route . params ;
5457 const navigation = useNavigation ( ) ;
5558 const insets = useSafeAreaInsets ( ) ;
@@ -446,7 +449,9 @@ export function ThreadQueueSheet({ route }: StaticScreenProps<QueueTarget>) {
446449 < GestureHandlerRootView style = { { flex : 1 } } >
447450 < View collapsable = { false } className = "flex-1 bg-sheet" >
448451 < AndroidSheetHeader title = "Queued" onBack = { ( ) => navigation . goBack ( ) } />
449- { content }
452+ < MaterialScreenContent insetHorizontal = { layout . usesSplitView } >
453+ { content }
454+ </ MaterialScreenContent >
450455 </ View >
451456 </ GestureHandlerRootView >
452457 ) ;
0 commit comments