Skip to content

Commit

Permalink
dhonti/ANDROID-15405-postercard: Update some components
Browse files Browse the repository at this point in the history
  • Loading branch information
dhonti-axpe committed Nov 22, 2024
1 parent 8166136 commit c74285e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand All @@ -32,7 +31,7 @@ fun PosterCard(
) {
androidx.compose.material.Card(
elevation = 0.dp,
shape = RoundedCornerShape(MisticaTheme.radius.containerBorderRadius),
shape = RoundedCornerShape(16.dp),
border = BorderStroke(width = 1.dp, color = MisticaTheme.colors.border),
modifier = modifier.let { modifierValue ->
onClickAction?.let {
Expand All @@ -57,7 +56,7 @@ fun PosterCard(
modifier = Modifier.align(alignment = Alignment.BottomCenter),
verticalArrangement = Arrangement.Bottom
) {
PosterCardTextContent(
PosterCardMainContent(
backgroundType = backgroundType,
tag = headline,
preTitle = preTitle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.telefonica.mistica.compose.tag.Tag
import com.telefonica.mistica.compose.theme.MisticaTheme

@Composable
internal fun PosterCardTextContent(
internal fun PosterCardMainContent(
modifier: Modifier = Modifier,
backgroundType: PosterCardBackgroundType,
tag: Tag?,
Expand Down
Binary file modified library/src/main/res/drawable/sample_background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c74285e

Please sign in to comment.