Skip to content

Commit

Permalink
fix bottom padding for add gateway/add persona field sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-rdx committed Aug 6, 2024
1 parent e9d2a26 commit bcae491
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.ime
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.systemBars
Expand Down Expand Up @@ -198,8 +197,7 @@ fun CreatePersonaContent(
},
onSelectionChanged = onSelectionChanged,
modifier = Modifier
.fillMaxSize()
.navigationBarsPadding(),
.fillMaxSize(),
anyFieldSelected = state.anyFieldSelected
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.exclude
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.ime
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.systemBars
import androidx.compose.foundation.layout.union
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
Expand Down Expand Up @@ -277,11 +276,11 @@ private fun AddGatewaySheet(
}

RadixBottomBar(
modifier = Modifier.imePadding(),
onClick = onAddGatewayClick,
text = stringResource(R.string.gateways_addNewGateway_addGatewayButtonTitle),
enabled = input.isUrlValid,
isLoading = input.isLoading
isLoading = input.isLoading,
insets = WindowInsets.navigationBars.union(WindowInsets.ime)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
Expand Down Expand Up @@ -203,7 +202,6 @@ fun BottomSheetDialogWrapper(
)
.animateContentSize()
.background(RadixTheme.colors.defaultBackground, shape = RadixTheme.shapes.roundedRectTopMedium)
.navigationBarsPadding()
.clip(RadixTheme.shapes.roundedRectTopMedium),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Expand Down

0 comments on commit bcae491

Please sign in to comment.