Skip to content

Commit 121870d

Browse files
committed
FIX: 메인홈에서 로그인여부에 따른 헤더 타이틀 패딩 조절
1 parent a571929 commit 121870d

File tree

1 file changed

+6
-4
lines changed
  • feature/home/src/main/java/com/plottwist/feature/home

1 file changed

+6
-4
lines changed

feature/home/src/main/java/com/plottwist/feature/home/HomeScreen.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,12 @@ fun HomeTitle(
367367
modifier = modifier.padding(start = 20.dp),
368368
verticalArrangement = Arrangement.SpaceBetween
369369
) {
370-
Text(
371-
text = if(name.isNotEmpty()) stringResource(R.string.home_subtitle, name) else "",
372-
style = TukSerifTypography.title22M
373-
)
370+
if(name.isNotBlank()) {
371+
Text(
372+
text = stringResource(R.string.home_subtitle, name),
373+
style = TukSerifTypography.title22M
374+
)
375+
}
374376

375377
Text(
376378
text = stringResource(R.string.home_title),

0 commit comments

Comments
 (0)