From a23bf34ccf771cf6706071aa5303975094a7a6bb Mon Sep 17 00:00:00 2001 From: QIU Date: Tue, 4 Aug 2026 14:22:27 +0000 Subject: [PATCH] fix(radar): swipe-delete visuals restored (yellow trash + undo countdown) Previous fix added the content-layer background OUTSIDE the offset modifier, so the background stayed at the original position and permanently covered the swipe-reveal area - the yellow trash icon, 75% undo button and 5s countdown were invisible while swiping. Moved the background INSIDE the offset (background follows the content): idle = fully covered (no bleed into Sent column), swiping = yellow trash / undo countdown revealed as before. Verified: :feature:radar:compileDebugKotlin BUILD SUCCESSFUL. Not released (batched with pending fixes). --- .../main/java/com/rtbishop/look4sat/feature/radar/LogTab.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/feature/radar/src/main/java/com/rtbishop/look4sat/feature/radar/LogTab.kt b/feature/radar/src/main/java/com/rtbishop/look4sat/feature/radar/LogTab.kt index 61ec6a96..e892617c 100644 --- a/feature/radar/src/main/java/com/rtbishop/look4sat/feature/radar/LogTab.kt +++ b/feature/radar/src/main/java/com/rtbishop/look4sat/feature/radar/LogTab.kt @@ -413,11 +413,12 @@ internal fun SwipeDeleteRow( ) } } - // 内容层(跟手滑动): 不透明背景确保平时完全盖住垃圾桶, 仅左滑露出 + // 内容层(跟手滑动): 背景在 offset 内侧(随内容移动)! + // 平时盖住垃圾桶, 左滑时内容带背景移开 → 右侧露出黄色垃圾桶/撤销倒计时 Box( modifier = Modifier - .background(MaterialTheme.colorScheme.surfaceContainer) .offset { IntOffset(animatedOffset.roundToInt(), 0) } + .background(MaterialTheme.colorScheme.surfaceContainer) .pointerInput(Unit) { detectHorizontalDragGestures( onDragStart = { if (pending) { pending = false } },