From 176b513d29af48b30e80f2f5d184a28efb379439 Mon Sep 17 00:00:00 2001 From: Yang Date: Fri, 8 Dec 2023 21:11:37 +1100 Subject: [PATCH] Fix content padding. --- .../kstreamlined/android/feature/home/HomeScreen.kt | 9 ++++++++- .../android/feature/savedforlater/SavedForLaterScreen.kt | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/android/feature/home/src/main/java/io/github/reactivecircus/kstreamlined/android/feature/home/HomeScreen.kt b/android/feature/home/src/main/java/io/github/reactivecircus/kstreamlined/android/feature/home/HomeScreen.kt index f2d024c4..2f4f65f6 100644 --- a/android/feature/home/src/main/java/io/github/reactivecircus/kstreamlined/android/feature/home/HomeScreen.kt +++ b/android/feature/home/src/main/java/io/github/reactivecircus/kstreamlined/android/feature/home/HomeScreen.kt @@ -84,7 +84,7 @@ public fun HomeScreen( @Suppress("MaxLineLength") LazyColumn( - contentPadding = PaddingValues(24.dp), + contentPadding = ListContentPadding, verticalArrangement = Arrangement.spacedBy(20.dp), ) { item { @@ -549,3 +549,10 @@ public fun HomeScreen( } } } + +private val ListContentPadding = PaddingValues( + top = 24.dp, + start = 24.dp, + end = 24.dp, + bottom = 120.dp, +) diff --git a/android/feature/saved-for-later/src/main/java/io/github/reactivecircus/kstreamlined/android/feature/savedforlater/SavedForLaterScreen.kt b/android/feature/saved-for-later/src/main/java/io/github/reactivecircus/kstreamlined/android/feature/savedforlater/SavedForLaterScreen.kt index e4644125..19756c3e 100644 --- a/android/feature/saved-for-later/src/main/java/io/github/reactivecircus/kstreamlined/android/feature/savedforlater/SavedForLaterScreen.kt +++ b/android/feature/saved-for-later/src/main/java/io/github/reactivecircus/kstreamlined/android/feature/savedforlater/SavedForLaterScreen.kt @@ -52,7 +52,7 @@ public fun SavedForLaterScreen( @Suppress("MaxLineLength") LazyColumn( - contentPadding = PaddingValues(24.dp), + contentPadding = ListContentPadding, verticalArrangement = Arrangement.spacedBy(20.dp), ) { item { @@ -213,3 +213,10 @@ public fun SavedForLaterScreen( } } } + +private val ListContentPadding = PaddingValues( + top = 24.dp, + start = 24.dp, + end = 24.dp, + bottom = 120.dp, +)