Skip to content

Commit 21b2707

Browse files
committed
[FIX]: 메뉴명이 10글자가 넘는 경우에 대한 예외 처리
1 parent 4b90724 commit 21b2707

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/com/kuit/ourmenu/ui/common/bottomsheet/MenuInfoBottomSheetContent.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ fun MenuInfoContent(
8686
.align(Alignment.CenterStart)
8787
) {
8888
Text(
89-
text = menuInfoData.menuTitle,
89+
text = with(menuInfoData.menuTitle) {
90+
if (length > 10) take(10) + "..." else this
91+
},
9092
style = ourMenuTypography().pretendard_700_20.copy(
9193
lineHeight = 32.sp,
9294
color = Neutral900,

0 commit comments

Comments
 (0)