@@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.Box
99import androidx.compose.foundation.layout.Column
1010import androidx.compose.foundation.layout.Spacer
1111import androidx.compose.foundation.layout.WindowInsets
12+ import androidx.compose.foundation.layout.fillMaxHeight
1213import androidx.compose.foundation.layout.fillMaxSize
1314import androidx.compose.foundation.layout.fillMaxWidth
1415import androidx.compose.foundation.layout.height
@@ -18,6 +19,7 @@ import androidx.compose.foundation.layout.navigationBarsPadding
1819import androidx.compose.foundation.layout.offset
1920import androidx.compose.foundation.layout.padding
2021import androidx.compose.foundation.layout.size
22+ import androidx.compose.foundation.layout.widthIn
2123import androidx.compose.foundation.rememberScrollState
2224import androidx.compose.foundation.shape.RoundedCornerShape
2325import androidx.compose.foundation.verticalScroll
@@ -121,20 +123,26 @@ fun LetterScreen(
121123 Box (
122124 modifier = modifier
123125 .fillMaxSize()
126+ .background(colors.black)
124127 .clickable(
125128 interactionSource = remember { MutableInteractionSource () },
126129 indication = null
127130 ) {
128131 focusManager.clearFocus()
129132 }
130133 ) {
131- Column (
132- modifier = Modifier
133- .fillMaxSize()
134- .navigationBarsPadding()
135- .verticalScroll(scrollState),
136- horizontalAlignment = Alignment .CenterHorizontally
134+ Box (
135+ modifier = Modifier .fillMaxSize(),
136+ contentAlignment = Alignment .TopCenter
137137 ) {
138+ Column (
139+ modifier = Modifier
140+ .widthIn(max = 500 .dp)
141+ .fillMaxSize()
142+ .navigationBarsPadding()
143+ .verticalScroll(scrollState),
144+ horizontalAlignment = Alignment .CenterHorizontally
145+ ) {
138146 Box {
139147 Image (
140148 painter = painterResource(Res .drawable.img_letter_background),
@@ -248,6 +256,7 @@ fun LetterScreen(
248256// }
249257// }
250258 }
259+ }
251260 }
252261}
253262
0 commit comments