Skip to content

Commit 40bec90

Browse files
committed
fix: banner not taking full width
1 parent 474a60c commit 40bec90

File tree

1 file changed

+2
-0
lines changed
  • feature_profile/src/main/java/com/my/kizzy/feature_profile/ui/component

1 file changed

+2
-0
lines changed

feature_profile/src/main/java/com/my/kizzy/feature_profile/ui/component/ProfileCard.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import androidx.compose.ui.Modifier
4242
import androidx.compose.ui.draw.clip
4343
import androidx.compose.ui.graphics.Brush
4444
import androidx.compose.ui.graphics.Color
45+
import androidx.compose.ui.layout.ContentScale
4546
import androidx.compose.ui.platform.LocalUriHandler
4647
import androidx.compose.ui.res.painterResource
4748
import androidx.compose.ui.text.TextStyle
@@ -103,6 +104,7 @@ fun ProfileCard(
103104
.fillMaxWidth()
104105
.height(120.dp),
105106
model = user.getBannerImage() ?: USER_BANNER,
107+
contentScale = ContentScale.FillWidth,
106108
placeholder = painterResource(R.drawable.broken_image),
107109
contentDescription = "User Avatar"
108110
)

0 commit comments

Comments
 (0)