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
4b8fce960e
commit
bd253e3e37
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.Arrangement
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.Column
|
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.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
@@ -218,7 +220,8 @@ fun DictionaryManagement(
|
|||||||
focusManager.clearFocus(force = true)
|
focusManager.clearFocus(force = true)
|
||||||
setShowUrlBottomSheet(false)
|
setShowUrlBottomSheet(false)
|
||||||
},
|
},
|
||||||
sheetState = sheetState
|
sheetState = sheetState,
|
||||||
|
contentWindowInsets = { WindowInsets.statusBars }
|
||||||
) {
|
) {
|
||||||
DictionaryUrlInputContent(
|
DictionaryUrlInputContent(
|
||||||
existingSources = sources,
|
existingSources = sources,
|
||||||
|
|||||||
Reference in new issue
Block a user