[Bug]: Mobile Queued sheet swipe-to-remove clips text mid-sheet and leaves a floating gap next to Send now #49787
Area#
apps/mobile
Steps to reproduce#
- Queue at least one message on a busy thread in the mobile app (iOS / iPadOS).
- Open the Queued sheet (
ThreadQueueSheet). - Swipe a queued message row to the left to reveal the Remove action.
Expected behavior#
- The swipeable row spans the full width of the sheet so row content slides cleanly to the true left edge without getting sliced at an inner margin.
- There is breathing space between the Send now pill and the revealed Remove action, and the Remove action aligns cleanly with the right edge of the sheet (matching the swipe-action layout in
ThreadSwipeable).
Actual behavior#
In apps/mobile/src/features/threads/ThreadQueueControl.tsx (main @ 56ac8dcc4a):
contentContainerClassName="px-5 pb-6"(line 243) is applied to the outerScrollViewwrappingQueueRowSwipeable(line 303), whoseReanimatedSwipeablecontainer hasoverflow: "hidden". Swiping left slices the message text mid-character 20px inside the left edge of the sheet, and leaves a 20px floating gap to the right of the rectangular Remove box.- The Send now button (
pl-4, no trailing padding inside the swipeable child) sits flush against the sharp-corneredbg-dangerRemove box with zero separation. - Also note that
onSwipeableOpen(lines 449-453) checksif (direction !== "right") return;, whereasreact-native-gesture-handlerv3ReanimatedSwipeablepassesSwipeDirection.LEFT("left") when openingrenderRightActions, making that callback dead code.
Impact#
Minor bug / visual polish issue
Version or commit#
main @ 56ac8dcc4a
Environment#
iOS / iPadOS mobile app (apps/mobile/src/features/threads/ThreadQueueControl.tsx)
Suggested fix#
Move px-5 off the ScrollView into each swipeable row child (<View className="flex-row items-center px-5">) and non-row banners (Queue paused, editBlockedReason, empty state), place an inset divider (mx-5 border-b border-border) below QueueRowSwipeable, and give the Remove swipe action proper right padding / rounded treatment consistent with ThreadSwipeable.
tanstack-source added labelsbug
Sign in to join this conversation.