Skip to content

Commit 46ca9f9

Browse files
committed
refactor :: CompanyCard Column 적용
1 parent 5e5fc11 commit 46ca9f9

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

feature/employment/src/main/java/team/retum/employment/ui/EmploymentDetailScreen.kt

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,24 +130,29 @@ private fun CompanyCard(
130130
imageUrl: String,
131131
companyName: String,
132132
) {
133-
Box(
134-
modifier = Modifier
135-
.size(80.dp)
136-
.shadow(elevation = 12.dp)
137-
.clip(RoundedCornerShape(6.dp))
138-
.background(color = JobisTheme.colors.inverseSurface),
133+
Column(
134+
horizontalAlignment = Alignment.CenterHorizontally,
139135
) {
140-
AsyncImage(
136+
Box(
141137
modifier = Modifier
142-
.align(Alignment.Center),
143-
model = imageUrl,
144-
contentDescription = companyName,
145-
contentScale = ContentScale.Crop,
146-
)
147-
Spacer(modifier = Modifier.padding(8.dp))
138+
.size(80.dp)
139+
.shadow(elevation = 18.dp)
140+
.clip(RoundedCornerShape(6.dp))
141+
.background(color = JobisTheme.colors.inverseSurface),
142+
) {
143+
AsyncImage(
144+
modifier = Modifier
145+
.align(Alignment.Center),
146+
model = imageUrl,
147+
contentDescription = companyName,
148+
contentScale = ContentScale.Crop,
149+
)
150+
}
151+
Spacer(modifier = Modifier.padding(top = 8.dp))
148152
JobisText(
149153
text = companyName,
150154
style = JobisTypography.Description,
155+
color = JobisTheme.colors.onSurfaceVariant,
151156
textAlign = TextAlign.Center,
152157
)
153158
}

0 commit comments

Comments
 (0)