Skip to content

Commit

Permalink
Fixed alignment for large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse committed Nov 14, 2023
1 parent 4f9d4d1 commit f7273f6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import movie.style.BackgroundImage
import movie.style.CollapsingTopAppBar
import movie.style.imagePlaceholder
import movie.style.layout.PreviewLayout
import movie.style.layout.alignForLargeScreen
import movie.style.modifier.glow
import movie.style.rememberImageState
import movie.style.theme.Theme
Expand All @@ -42,6 +43,7 @@ fun ProfileEditorScreen(
modifier = modifier,
topBar = {
CollapsingTopAppBar(
modifier = Modifier.alignForLargeScreen(),
title = { Text("You") },
navigationIcon = {
IconButton(onClick = onBackClick) {
Expand All @@ -61,6 +63,7 @@ fun ProfileEditorScreen(
BackgroundImage(state = background)
Column(
modifier = Modifier
.alignForLargeScreen()
.nestedScroll(scrollBehavior.nestedScrollConnection)
.verticalScroll(rememberScrollState())
.padding(padding)
Expand Down

0 comments on commit f7273f6

Please sign in to comment.