Skip to content

Commit

Permalink
refactor: break strategy 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
s9hn committed Sep 26, 2024
1 parent 8981910 commit a7c5b50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@ internal fun FortuneDetailScreen(
private fun FortuneDetailScreenPreview() {
SoptTheme {
FortuneDetailScreen(
paddingValue = PaddingValues(vertical = 16.dp), date = "2024-09-09", onFortuneAmuletClick = {}, uiState = TodaySentence(
userName = "누누", content = "오늘 하루종일 기분 좋을 것 같은 날이네요."
)
paddingValue = PaddingValues(vertical = 16.dp),
date = "2024-09-09",
onFortuneAmuletClick = {},
uiState = TodaySentence(
userName = "누누",
content = "오늘 하루종일 기분 좋을 것 같은 날이네요.",
),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.text.style.LineBreak
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
Expand Down Expand Up @@ -71,7 +72,9 @@ internal fun TodayFortuneDashboard(
Spacer(modifier = Modifier.height(height = 20.dp))
Text(
text = todaySentence,
style = SoptTheme.typography.title24SB,
style = SoptTheme.typography.title24SB.copy(
lineBreak = LineBreak.Simple,
),
color = Gray30,
textAlign = TextAlign.Center,
modifier = Modifier
Expand All @@ -91,7 +94,7 @@ private fun TodayFortuneDashboardPreview() {
SoptTheme {
TodayFortuneDashboard(
date = "2024-09-09",
todaySentence = "안녕하세우안녕하세우안녕하세우안녕하세우안녕하세우안녕하세우",
todaySentence = "hi my name is Sehun kim, nice to meet you",
)
}
}

0 comments on commit a7c5b50

Please sign in to comment.