Skip to content

Commit a8fb023

Browse files
committed
[BOOK-169] feat: BookCard 제목 maxline 설정
1 parent 3986cf8 commit a8fb023

File tree

1 file changed

+7
-1
lines changed
  • feature/home/src/main/kotlin/com/ninecraft/booket/feature/home/component

1 file changed

+7
-1
lines changed

feature/home/src/main/kotlin/com/ninecraft/booket/feature/home/component/BookCard.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ fun BookCard(
101101
Text(
102102
text = recentBookInfo.title,
103103
color = ReedTheme.colors.contentPrimary,
104+
overflow = TextOverflow.Ellipsis,
105+
maxLines = 1,
104106
style = ReedTheme.typography.headline1SemiBold,
105107
)
106108
Spacer(modifier = Modifier.height(ReedTheme.spacing.spacing1))
@@ -254,7 +256,11 @@ fun EmptyBookCard(
254256
private fun BookCardPreview() {
255257
ReedTheme {
256258
BookCard(
257-
recentBookInfo = RecentBookModel(),
259+
recentBookInfo = RecentBookModel(
260+
title = "여름은 오래 그곳에 남아",
261+
author = "마쓰이에 마사시",
262+
publisher = "비채"
263+
),
258264
onBookDetailClick = {},
259265
onRecordButtonClick = {},
260266
)

0 commit comments

Comments
 (0)