Skip to content
Merged
1 change: 1 addition & 0 deletions feature/employment/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ΄κ±°λŠ” μ™œ μΆ”κ°€λœκ±΄κ°€μš”?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

λ‹€λ₯Έ λͺ¨λ“ˆμ—λ„ μΆ”κ°€λ˜μ–΄μžˆμ–΄ ν™•μΈν•΄λ³΄λ‹ˆ libsλ₯Ό μ ‘κ·Όν•  λ•Œ IDEκ°€ μ•ˆμ „ν•˜μ§€ μ•Šλ‹€κ³  νŒλ‹¨λ˜μ–΄ μ‚¬μš©ν•˜λŠ” 것을 μ•Œκ³  λ„£κ²Œ λ˜μ—ˆμŠ΅λ‹ˆλ‹€

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

plugins {
id(libs.plugins.android.library.get().pluginId)
id(libs.plugins.kotlin.android.get().pluginId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
Expand All @@ -23,6 +24,7 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
Expand Down Expand Up @@ -128,19 +130,30 @@ private fun CompanyCard(
imageUrl: String,
companyName: String,
) {
Box(
modifier = Modifier
.size(80.dp)
.shadow(elevation = 12.dp)
.clip(RoundedCornerShape(6.dp))
.background(color = JobisTheme.colors.inverseSurface),
Column(
horizontalAlignment = Alignment.CenterHorizontally,
) {
AsyncImage(
Box(
modifier = Modifier
.align(Alignment.Center),
model = imageUrl,
contentDescription = companyName,
contentScale = ContentScale.Crop,
.size(80.dp)
.shadow(elevation = 18.dp)
.clip(RoundedCornerShape(6.dp))
.background(color = JobisTheme.colors.inverseSurface),
) {
AsyncImage(
modifier = Modifier
.align(Alignment.Center),
model = imageUrl,
contentDescription = companyName,
contentScale = ContentScale.Crop,
)
Comment on lines +142 to +148
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Box둜 감싸지 말고 여기에 Modifier둜 μ μš©ν•˜λ©΄ μ•ˆλ˜λ‚˜μš”?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ‹œλ„ν•΄λ³΄κ² μŠ΅λ‹ˆλ‹€

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

빈 이미지일 경우 화면을 Boxκ°€ λŒ€μ²΄ν•˜κ³  μžˆμ–΄ μ•ˆλ˜λŠ” κ±° κ°™μŠ΅λ‹ˆλ‹€

}
Spacer(modifier = Modifier.padding(top = 8.dp))
JobisText(
text = companyName,
style = JobisTypography.Description,
color = JobisTheme.colors.onSurfaceVariant,
textAlign = TextAlign.Center,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import kotlinx.collections.immutable.toPersistentList
import team.retum.jobis.interests.R
import team.retum.interests.R
import team.retum.jobisdesignsystemv2.appbar.JobisSmallTopAppBar
import team.retum.jobisdesignsystemv2.foundation.JobisTheme
import team.retum.jobisdesignsystemv2.skills.Skills
Expand Down
Loading