diff --git a/new-player/src/main/java/net/newpipe/newplayer/ui/videoplayer/streamselect/ChapterItem.kt b/new-player/src/main/java/net/newpipe/newplayer/ui/videoplayer/streamselect/ChapterItem.kt index 4a22fb4..68a956a 100644 --- a/new-player/src/main/java/net/newpipe/newplayer/ui/videoplayer/streamselect/ChapterItem.kt +++ b/new-player/src/main/java/net/newpipe/newplayer/ui/videoplayer/streamselect/ChapterItem.kt @@ -106,25 +106,28 @@ fun ChapterItem( Row { val contentDescription = stringResource(R.string.chapter_thumbnail) Thumbnail( + modifier = Modifier.fillMaxHeight(), thumbnail = thumbnail, contentDescription = contentDescription, shape = ITEM_CORNER_SHAPE ) Column( modifier = Modifier - .padding(start = 8.dp, top = 5.dp, bottom = 5.dp) + .padding(6.dp) .weight(1f), horizontalAlignment = Alignment.Start, ) { Text( text = chapterTitle, - fontSize = 18.sp, + fontSize = 14.sp, fontWeight = FontWeight.Bold, - maxLines = 1, + maxLines = 2, overflow = TextOverflow.Ellipsis ) Text( getTimeStringFromMs(chapterStartInMs, locale), + fontSize = 13.sp, + fontWeight = FontWeight.Light, maxLines = 1, overflow = TextOverflow.Ellipsis ) diff --git a/new-player/src/main/java/net/newpipe/newplayer/ui/videoplayer/streamselect/StreamItem.kt b/new-player/src/main/java/net/newpipe/newplayer/ui/videoplayer/streamselect/StreamItem.kt index b2d6c8c..554b842 100644 --- a/new-player/src/main/java/net/newpipe/newplayer/ui/videoplayer/streamselect/StreamItem.kt +++ b/new-player/src/main/java/net/newpipe/newplayer/ui/videoplayer/streamselect/StreamItem.kt @@ -32,6 +32,7 @@ import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.aspectRatio +import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height @@ -133,6 +134,7 @@ fun StreamItem( ) { val contentDescription = stringResource(R.string.stream_item_thumbnail) Thumbnail( + modifier = Modifier.fillMaxHeight(), thumbnail = playlistItem.thumbnail, contentDescription = contentDescription, shape = ITEM_CORNER_SHAPE diff --git a/new-player/src/main/java/net/newpipe/newplayer/utils/utils.kt b/new-player/src/main/java/net/newpipe/newplayer/utils/utils.kt index bd25589..2d09bd2 100644 --- a/new-player/src/main/java/net/newpipe/newplayer/utils/utils.kt +++ b/new-player/src/main/java/net/newpipe/newplayer/utils/utils.kt @@ -39,6 +39,7 @@ import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.ReadOnlyComposable import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip +import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.platform.LocalConfiguration import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalView @@ -166,7 +167,7 @@ fun Thumbnail( is OnlineThumbnail -> AsyncImage( modifier = modifier, model = thumbnail.url, - contentDescription = contentDescription + contentDescription = contentDescription, ) is BitmapThumbnail -> Image(