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).
This commit is contained in:
1 parent
a724c0823d
commit
a23bf34ccf
1 file changed
+3
-2
@@ -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 } },
|
||||
|
||||
Reference in new issue
Block a user