Skip to content

Commit

Permalink
Update windowInsets
Browse files Browse the repository at this point in the history
  • Loading branch information
FelberMartin committed Nov 22, 2024
1 parent 93f49ed commit 54db1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxHeight
Expand Down Expand Up @@ -56,7 +55,6 @@ import de.tum.informatics.www1.artemis.native_app.core.ui.Spacings
import de.tum.informatics.www1.artemis.native_app.feature.metis.conversation.R
import de.tum.informatics.www1.artemis.native_app.feature.metis.conversation.ui.LocalEmojiProvider
import de.tum.informatics.www1.artemis.native_app.feature.metis.conversation.ui.getUnicodeForEmojiId
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.content.dto.AnswerPost
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.content.dto.IAnswerPost
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.content.dto.IBasePost
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.content.dto.IReaction
Expand All @@ -77,7 +75,7 @@ internal fun PostContextBottomSheet(
if (!displayAllEmojis) {
ModalBottomSheet(
modifier = Modifier.testTag(TEST_TAG_POST_CONTEXT_BOTTOM_SHEET),
windowInsets = WindowInsets.statusBars,
contentWindowInsets = { WindowInsets.statusBars },
sheetState = rememberModalBottomSheetState(),
onDismissRequest = onDismissRequest
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ fun ConversationOverviewBody(

if (showCodeOfConduct) {
ModalBottomSheet(
windowInsets = WindowInsets.statusBars,
contentWindowInsets = { WindowInsets.statusBars },
onDismissRequest = { showCodeOfConduct = false }
) {
CodeOfConductUi(
Expand Down

0 comments on commit 54db1cf

Please sign in to comment.