Skip to content

Commit 51cccf1

Browse files
committed
ensure that the last list item in ReplyDetailPane does not have too much padding
1 parent 3073372 commit 51cccf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AdaptiveUiCodelab/app/src/main/java/com/example/reply/ui/ReplyListContent.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,14 @@ fun ReplyDetailPane(
8989
email: Email,
9090
modifier: Modifier = Modifier
9191
) {
92+
93+
val layoutDirection = LocalLayoutDirection.current
94+
9295
LazyColumn(
9396
modifier = modifier.fillMaxWidth(),
9497
contentPadding = WindowInsets.safeDrawing.asPaddingValues()
98+
.copy(layoutDirection = layoutDirection, bottom = 0.dp)
99+
95100
) {
96101
item {
97102
ReplyEmailThreadItem(email)

0 commit comments

Comments
 (0)