File tree 2 files changed +10
-10
lines changed
com/capyreader/app/ui/articles/list 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ fun ArticleRowSwipeBox(
14
14
15
15
if (swipeState.disabled) {
16
16
content()
17
- }
18
-
19
- SwipeableActionsBox (
20
- startActions = swipeState.start ,
21
- endActions = swipeState.end,
22
- backgroundUntilSwipeThreshold = MaterialTheme .colorScheme.surface
23
- ) {
24
- content()
17
+ } else {
18
+ SwipeableActionsBox (
19
+ startActions = swipeState.start,
20
+ endActions = swipeState.end ,
21
+ backgroundUntilSwipeThreshold = MaterialTheme .colorScheme.surface
22
+ ) {
23
+ content()
24
+ }
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -125,11 +125,11 @@ private fun ActionIconBox(
125
125
layout(width = placeable.width, height = placeable.height) {
126
126
// Align icon with the left/right edge of the content being swiped.
127
127
val iconOffset = if (action.isOnRightSide) constraints.maxWidth + offset else offset - placeable.width
128
- placeable.placeRelative (x = iconOffset.roundToInt(), y = 0 )
128
+ placeable.place (x = iconOffset.roundToInt(), y = 0 )
129
129
}
130
130
}
131
131
.background(color = backgroundColor),
132
- horizontalArrangement = if (action.isOnRightSide) Arrangement .Start else Arrangement .End ,
132
+ horizontalArrangement = if (action.isOnRightSide) Arrangement .Absolute . Left else Arrangement .Absolute . Right ,
133
133
verticalAlignment = Alignment .CenterVertically ,
134
134
) {
135
135
content()
You can’t perform that action at this time.
0 commit comments