@@ -269,60 +269,28 @@ fun ShowMediaInfo(videoId: String) {
269269 color = MaterialTheme .colorScheme.onBackground,
270270 textAlign = TextAlign .Start
271271 )
272- Row (
273- horizontalArrangement = Arrangement .SpaceBetween ,
274- verticalAlignment = Alignment .CenterVertically ,
272+ Column (
273+ verticalArrangement = Arrangement .spacedBy(8 .dp),
275274 modifier = Modifier
276275 .fillMaxWidth()
277- .padding(all = 16 .dp)
276+ .padding(horizontal = 16 .dp, vertical = 12 .dp)
278277 ) {
279- Column {
280- BasicText (
281- text = stringResource(R .string.subscribers),
282- style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
283- )
284- BasicText (
285- text = info?.subscribers ? : " " ,
286- style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
287- modifier = Modifier .padding(top = 8 .dp)
288- )
289- }
290- Column {
291- BasicText (
292- text = stringResource(R .string.views),
293- style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
294- modifier = Modifier
295- )
296- BasicText (
297- text = info?.viewCount?.let (::numberFormatter).orEmpty(),
298- style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
299- modifier = Modifier .padding(top = 8 .dp)
300- )
301- }
302- Column {
303- BasicText (
304- text = stringResource(R .string.likes),
305- style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
306- modifier = Modifier
307- )
308- BasicText (
309- text = info?.like?.let (::numberFormatter).orEmpty(),
310- style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
311- modifier = Modifier .padding(top = 8 .dp)
312- )
313- }
314- Column {
315- BasicText (
316- text = stringResource(R .string.dislikes),
317- style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
318- modifier = Modifier
319- )
320- BasicText (
321- text = info?.dislike?.let (::numberFormatter).orEmpty(),
322- style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
323- modifier = Modifier .padding(top = 8 .dp)
324- )
325- }
278+ BasicText (
279+ text = " ${stringResource(R .string.subscribers)} : ${info?.subscribers ? : " " } " ,
280+ style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
281+ )
282+ BasicText (
283+ text = " ${stringResource(R .string.views)} : ${info?.viewCount?.let (::numberFormatter).orEmpty()} " ,
284+ style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
285+ )
286+ BasicText (
287+ text = " ${stringResource(R .string.likes)} : ${info?.like?.let (::numberFormatter).orEmpty()} " ,
288+ style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
289+ )
290+ BasicText (
291+ text = " ${stringResource(R .string.dislikes)} : ${info?.dislike?.let (::numberFormatter).orEmpty()} " ,
292+ style = MaterialTheme .typography.titleSmall.copy(color = MaterialTheme .colorScheme.onBackground),
293+ )
326294 }
327295 }
328296 }
0 commit comments