fix(mobile): make queued message removal tappable (#15417)

This commit is contained in:
Alex authored and GitHub committed 2026-10-04 04:09:31 -03:00
1 parent 6e0abd5a10
commit ae010fe55b
1 file changed
+11 -3
@@ -26,6 +26,7 @@ import { beginQueuedRunEdit, useQueuedRunEdit } from "../../state/queued-run-edi
import { 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}