fix(settings): pin Add Source container to static insets
With many fields, the Add Source sheet could keep re-triggering its settle animation: animated window insets reached the container while its height followed the content. Keep only the static status bar inset on the sheet container; the content already pads itself for the navigation bar and IME.
This commit is contained in:
1 parent
f227546111
commit
d2c9dd7701
1 file changed
+4
-1
+4
-1
@@ -10,6 +10,8 @@ import androidx.compose.animation.shrinkVertically
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.WindowInsets
|
||||
import androidx.compose.foundation.layout.statusBars
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
@@ -218,7 +220,8 @@ fun DictionaryManagement(
|
||||
focusManager.clearFocus(force = true)
|
||||
setShowUrlBottomSheet(false)
|
||||
},
|
||||
sheetState = sheetState
|
||||
sheetState = sheetState,
|
||||
contentWindowInsets = { WindowInsets.statusBars }
|
||||
) {
|
||||
DictionaryUrlInputContent(
|
||||
existingSources = sources,
|
||||
|
||||
Reference in new issue
Block a user