@@ -10,8 +10,10 @@ import androidx.compose.foundation.layout.Column
1010import androidx.compose.foundation.layout.Row
1111import androidx.compose.foundation.layout.Spacer
1212import androidx.compose.foundation.layout.aspectRatio
13+ import androidx.compose.foundation.layout.fillMaxHeight
1314import androidx.compose.foundation.layout.fillMaxSize
1415import androidx.compose.foundation.layout.fillMaxWidth
16+ import androidx.compose.foundation.layout.height
1517import androidx.compose.foundation.layout.padding
1618import androidx.compose.foundation.shape.RoundedCornerShape
1719import androidx.compose.material3.Button
@@ -26,6 +28,7 @@ import androidx.compose.ui.layout.ContentScale
2628import androidx.compose.ui.platform.LocalUriHandler
2729import androidx.compose.ui.text.font.FontWeight
2830import androidx.compose.ui.unit.dp
31+ import androidx.compose.ui.unit.em
2932import androidx.compose.ui.unit.sp
3033import coil.compose.rememberAsyncImagePainter
3134
@@ -62,7 +65,8 @@ fun NewsComposableComponent(
6265 modifier =
6366 Modifier
6467 .matchParentSize()
65- .fillMaxWidth(),
68+ .fillMaxWidth()
69+ .fillMaxHeight(),
6670 )
6771 }
6872 Box (
@@ -91,7 +95,7 @@ fun NewsComposableComponent(
9195 modifier =
9296 Modifier
9397 .fillMaxWidth()
94- .padding(12 .dp),
98+ .padding(16 .dp),
9599 ) {
96100 Column (
97101 verticalArrangement = Arrangement .spacedBy(6 .dp),
@@ -118,14 +122,15 @@ fun NewsComposableComponent(
118122 text = title,
119123 color = Color .White ,
120124 fontWeight = FontWeight .Bold ,
121- fontSize = 18 .sp,
125+ fontSize = 16 .sp,
126+ lineHeight = 1.25 .em,
122127 )
123128
124129 var description = " sample description here"
125130 article.subtitle?.let {
126131 description = article.subtitle
127132 }
128- Text (text = description, color = Color .White )
133+ Text (text = description, color = Color .White , lineHeight = 1.15 .em )
129134 }
130135 }
131136 }
0 commit comments