Skip to content

Commit a4d8d38

Browse files
committed
style: 프로필 화면 디자인 QA 반영
1 parent 2cb53b3 commit a4d8d38

File tree

1 file changed

+10
-5
lines changed
  • presentation/src/main/java/com/nexters/boolti/presentation/screen/profile

1 file changed

+10
-5
lines changed

presentation/src/main/java/com/nexters/boolti/presentation/screen/profile/ProfileScreen.kt

+10-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.ExperimentalLayoutApi
1010
import androidx.compose.foundation.layout.FlowRow
1111
import androidx.compose.foundation.layout.PaddingValues
1212
import androidx.compose.foundation.layout.Row
13+
import androidx.compose.foundation.layout.Spacer
1314
import androidx.compose.foundation.layout.fillMaxWidth
1415
import androidx.compose.foundation.layout.padding
1516
import androidx.compose.foundation.layout.size
@@ -210,10 +211,14 @@ fun ProfileScreen(
210211
},
211212
)
212213

214+
if (user.link.isNotEmpty() || user.performedShow.isNotEmpty()) {
215+
Spacer(Modifier.size(8.dp))
216+
}
217+
213218
if (user.link.isNotEmpty()) { // 링크가 있으면
214219
Section(
215220
title = stringResource(R.string.profile_links_title),
216-
onClickShowAll = if (user.link.size >= 3) {
221+
onClickShowAll = if (user.link.size >= 4) {
217222
{ navigateToLinks() }
218223
} else {
219224
null
@@ -247,17 +252,17 @@ fun ProfileScreen(
247252
if (user.performedShow.isNotEmpty()) { // 출연한 공연이 있으면
248253
Section(
249254
title = stringResource(R.string.performed_shows),
250-
onClickShowAll = if (user.performedShow.size >= 2) {
255+
onClickShowAll = if (user.performedShow.size >= 3) {
251256
{ navigateToPerformedShows() }
252257
} else {
253258
null
254259
},
255260
) {
256-
user.performedShow.take(3).forEachIndexed { i, show ->
261+
user.performedShow.take(2).forEachIndexed { i, show ->
257262
ShowItem(
258263
modifier = Modifier
259264
.fillMaxWidth()
260-
.padding(top = if (i == 0) 0.dp else 24.dp)
265+
.padding(top = if (i == 0) 0.dp else 20.dp)
261266
.padding(horizontal = marginHorizontal),
262267
show = show,
263268
backgroundColor = MaterialTheme.colorScheme.background,
@@ -436,8 +441,8 @@ fun LinkItem(
436441
Row(
437442
modifier = modifier
438443
.fillMaxWidth()
439-
.background(MaterialTheme.colorScheme.surface)
440444
.clip(RoundedCornerShape(4.dp))
445+
.background(MaterialTheme.colorScheme.surface)
441446
.clickable(onClick = onClick)
442447
.padding(horizontal = 20.dp, vertical = 16.dp),
443448
verticalAlignment = Alignment.CenterVertically,

0 commit comments

Comments
 (0)