Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
♻️ :: 피드 상세보기 이미지 content scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Tmdhoon2 committed Dec 5, 2023
1 parent a335bcc commit 39806e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
Expand Down Expand Up @@ -108,8 +109,8 @@ internal fun FeedDetails(
ModalBottomSheetLayout(
sheetContent = {
CommentDialog(
feedViewModel = feedViewModel,
coinViewModel = coinViewModel,
feedViewModel = feedViewModel,
coinViewModel = coinViewModel,
)
},
sheetState = sheetState,
Expand Down Expand Up @@ -149,10 +150,10 @@ internal fun FeedDetails(
AsyncImage(
modifier = Modifier
.fillMaxWidth()
.height(200.dp)
.clip(CircleShape),
.height(200.dp),
model = details.image,
contentDescription = stringResource(id = R.string.feed_details_image),
contentScale = ContentScale.Crop,
)
}
Spacer(modifier = Modifier.height(12.dp))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ internal fun EditProfile(
.clip(CircleShape),
model = state.profile ?: R.drawable.ic_profile_image,
contentDescription = stringResource(id = R.string.my_page_profile_image),
contentScale = ContentScale.Crop,
)
AsyncImage(
modifier = Modifier
Expand Down

0 comments on commit 39806e7

Please sign in to comment.