Skip to content

Commit 276a4d5

Browse files
committed
[BOOK-427] fix: 모든 책 썸네일에 border 추가
1 parent 07596ab commit 276a4d5

File tree

4 files changed

+28
-4
lines changed
  • feature
    • detail/src/main/kotlin/com/ninecraft/booket/feature/detail/record/component
    • library/src/main/kotlin/com/ninecraft/booket/feature/library/component
    • search/src/main/kotlin/com/ninecraft/booket/feature/search

4 files changed

+28
-4
lines changed

feature/detail/src/main/kotlin/com/ninecraft/booket/feature/detail/record/component/BookItem.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.ninecraft.booket.feature.detail.record.component
22

3+
import androidx.compose.foundation.border
34
import androidx.compose.foundation.layout.BoxWithConstraints
45
import androidx.compose.foundation.layout.Column
56
import androidx.compose.foundation.layout.Row
@@ -48,7 +49,12 @@ internal fun BookItem(
4849
.padding(end = ReedTheme.spacing.spacing4)
4950
.width(46.dp)
5051
.height(68.dp)
51-
.clip(RoundedCornerShape(size = ReedTheme.radius.xs)),
52+
.clip(RoundedCornerShape(size = ReedTheme.radius.xs))
53+
.border(
54+
width = 1.dp,
55+
color = ReedTheme.colors.borderPrimary,
56+
shape = RoundedCornerShape(ReedTheme.radius.xs),
57+
),
5258
placeholder = painterResource(R.drawable.ic_placeholder),
5359
)
5460
Column(modifier = Modifier.weight(1f)) {

feature/library/src/main/kotlin/com/ninecraft/booket/feature/library/component/LibraryBookItem.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.ninecraft.booket.feature.library.component
22

3+
import androidx.compose.foundation.border
34
import androidx.compose.foundation.layout.BoxWithConstraints
45
import androidx.compose.foundation.layout.Column
56
import androidx.compose.foundation.layout.Row
@@ -52,7 +53,12 @@ fun LibraryBookItem(
5253
)
5354
.width(68.dp)
5455
.height(100.dp)
55-
.clip(RoundedCornerShape(size = ReedTheme.radius.sm)),
56+
.clip(RoundedCornerShape(size = ReedTheme.radius.sm))
57+
.border(
58+
width = 1.dp,
59+
color = ReedTheme.colors.borderPrimary,
60+
shape = RoundedCornerShape(ReedTheme.radius.sm),
61+
),
5662
placeholder = painterResource(designR.drawable.ic_placeholder),
5763
)
5864
Column(modifier = Modifier.weight(1f)) {

feature/search/src/main/kotlin/com/ninecraft/booket/feature/search/book/component/BookItem.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.ninecraft.booket.feature.search.book.component
22

33
import androidx.compose.foundation.background
4+
import androidx.compose.foundation.border
45
import androidx.compose.foundation.clickable
56
import androidx.compose.foundation.layout.Box
67
import androidx.compose.foundation.layout.BoxWithConstraints
@@ -65,7 +66,12 @@ fun BookItem(
6566
)
6667
.width(68.dp)
6768
.height(100.dp)
68-
.clip(RoundedCornerShape(size = ReedTheme.radius.sm)),
69+
.clip(RoundedCornerShape(size = ReedTheme.radius.sm))
70+
.border(
71+
width = 1.dp,
72+
color = ReedTheme.colors.borderPrimary,
73+
shape = RoundedCornerShape(ReedTheme.radius.sm),
74+
),
6975
) {
7076
NetworkImage(
7177
imageUrl = book.coverImageUrl,

feature/search/src/main/kotlin/com/ninecraft/booket/feature/search/library/component/LibraryBookItem.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.ninecraft.booket.feature.search.library.component
22

3+
import androidx.compose.foundation.border
34
import androidx.compose.foundation.layout.BoxWithConstraints
45
import androidx.compose.foundation.layout.Column
56
import androidx.compose.foundation.layout.Row
@@ -52,7 +53,12 @@ fun LibraryBookItem(
5253
)
5354
.width(68.dp)
5455
.height(100.dp)
55-
.clip(RoundedCornerShape(size = ReedTheme.radius.sm)),
56+
.clip(RoundedCornerShape(size = ReedTheme.radius.sm))
57+
.border(
58+
width = 1.dp,
59+
color = ReedTheme.colors.borderPrimary,
60+
shape = RoundedCornerShape(ReedTheme.radius.sm),
61+
),
5662
placeholder = painterResource(designR.drawable.ic_placeholder),
5763
)
5864
Column(modifier = Modifier.weight(1f)) {

0 commit comments

Comments
 (0)