Skip to content

Commit 5a9c90a

Browse files
committed
[feature/#49] 편지 보내기 화면 폴드 대응
1 parent 75f84b2 commit 5a9c90a

File tree

1 file changed

+15
-6
lines changed
  • feature/result/src/commonMain/kotlin/com/nexters/emotia/feature/result/letter

1 file changed

+15
-6
lines changed

feature/result/src/commonMain/kotlin/com/nexters/emotia/feature/result/letter/LetterScreen.kt

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.Box
99
import androidx.compose.foundation.layout.Column
1010
import androidx.compose.foundation.layout.Spacer
1111
import androidx.compose.foundation.layout.WindowInsets
12+
import androidx.compose.foundation.layout.fillMaxHeight
1213
import androidx.compose.foundation.layout.fillMaxSize
1314
import androidx.compose.foundation.layout.fillMaxWidth
1415
import androidx.compose.foundation.layout.height
@@ -18,6 +19,7 @@ import androidx.compose.foundation.layout.navigationBarsPadding
1819
import androidx.compose.foundation.layout.offset
1920
import androidx.compose.foundation.layout.padding
2021
import androidx.compose.foundation.layout.size
22+
import androidx.compose.foundation.layout.widthIn
2123
import androidx.compose.foundation.rememberScrollState
2224
import androidx.compose.foundation.shape.RoundedCornerShape
2325
import 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

Comments
 (0)