TypeScript
fix(mobile): make queued message removal tappable (#15417)
Alexae010fe55b9c
diff --git a/apps/mobile/src/features/threads/ThreadQueueControl.tsx b/apps/mobile/src/features/threads/ThreadQueueControl.tsxindex adc1131a05d..5aa56b3d272 100644--- a/apps/mobile/src/features/threads/ThreadQueueControl.tsx+++ b/apps/mobile/src/features/threads/ThreadQueueControl.tsx@@ -26,6 +26,7 @@ import { beginQueuedRunEdit, useQueuedRunEdit } from "../../state/queued-run-ediimport { environmentThreadDetails, threadEnvironment } from "../../state/threads";import { useAtomCommand } from "../../state/use-atom-command";import {+ REMOVE_QUEUED_MESSAGE_ACCESSIBILITY_LABEL,buildCancelQueuedRunCommand,resolveQueueDragBeforeRunId,resolveQueueDropBeforeRunId,@@ -502,13 +503,20 @@ function QueueRowSwipeable(props: {props.onRemove();}}renderRightActions={() => (- <View- className="items-center justify-center bg-danger"+ <Pressable+ accessibilityRole="button"+ accessibilityLabel={REMOVE_QUEUED_MESSAGE_ACCESSIBILITY_LABEL}+ disabled={!props.enabled}+ onPress={() => {+ swipeableRef.current?.close();+ props.onRemove();+ }}+ className="items-center justify-center bg-danger active:opacity-70 disabled:opacity-40"style={{ width: REMOVE_ACTION_WIDTH }}><SymbolView name="trash" size={16} tintColorClassName="accent-danger-foreground" /><Text className="pt-1 text-2xs font-t3-medium text-danger-foreground">Remove</Text>- </View>+ </Pressable>)}>{props.children}