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:
OneWay authored and Evgenii committed 2026-10-04 12:36:00 +00:00
1 parent 4b8fce960e
commit bd253e3e37
1 file changed
+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,