fix(mobile): round Android queued message sheet corners (#14934)
This commit is contained in:
1 file changed
+8
-2
@@ -18,13 +18,15 @@ import { AndroidSheetHeader } from "../../components/AndroidScreenHeader";
|
||||
import { AppText as Text } from "../../components/AppText";
|
||||
import { SymbolView } from "../../components/AppSymbol";
|
||||
import { ControlPillMenu } from "../../components/ControlPill";
|
||||
import { MaterialScreenContent } from "../../components/MaterialScreenContent";
|
||||
import { scopedThreadKey } from "../../lib/scopedEntities";
|
||||
import { useUniwindTheme } from "../../lib/useUniwindTheme";
|
||||
import { nativeHeaderScrollEdgeEffects } from "../../native/StackHeader";
|
||||
import { NativeStackScreenOptions, nativeHeaderScrollEdgeEffects } from "../../native/StackHeader";
|
||||
import { useAssetUrl } from "../../state/assets";
|
||||
import { beginQueuedRunEdit, useQueuedRunEdit } from "../../state/queued-run-edit";
|
||||
import { environmentThreadDetails, threadEnvironment } from "../../state/threads";
|
||||
import { useAtomCommand } from "../../state/use-atom-command";
|
||||
import { useAdaptiveWorkspaceLayout } from "../layout/AdaptiveWorkspaceLayout";
|
||||
import {
|
||||
REMOVE_QUEUED_MESSAGE_ACCESSIBILITY_LABEL,
|
||||
buildCancelQueuedRunCommand,
|
||||
@@ -51,6 +53,7 @@ export function useThreadQueuedCount(target: QueueTarget) {
|
||||
}
|
||||
|
||||
export function ThreadQueueSheet({ route }: StaticScreenProps<QueueTarget>) {
|
||||
const { layout } = useAdaptiveWorkspaceLayout();
|
||||
const target = route.params;
|
||||
const navigation = useNavigation();
|
||||
const insets = useSafeAreaInsets();
|
||||
@@ -446,8 +449,11 @@ export function ThreadQueueSheet({ route }: StaticScreenProps<QueueTarget>) {
|
||||
return (
|
||||
<GestureHandlerRootView style={{ flex: 1 }}>
|
||||
<View collapsable={false} className="flex-1 bg-sheet">
|
||||
<NativeStackScreenOptions options={{ sheetCornerRadius: 28 }} />
|
||||
<AndroidSheetHeader title="Queued" onBack={() => navigation.goBack()} />
|
||||
{content}
|
||||
<MaterialScreenContent insetHorizontal={layout.usesSplitView}>
|
||||
{content}
|
||||
</MaterialScreenContent>
|
||||
</View>
|
||||
</GestureHandlerRootView>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user