mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +00:00
feat(libraries): add size property to Library and related models for better content representation
This commit is contained in:
@@ -2,6 +2,7 @@ package hu.bbara.purefin.ui.screen.libraries.components
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import hu.bbara.purefin.model.LibraryKind
|
||||
import hu.bbara.purefin.ui.common.card.MediaImageCard
|
||||
import hu.bbara.purefin.ui.model.LibraryUiModel
|
||||
|
||||
@@ -14,6 +15,7 @@ fun LibraryListItem(
|
||||
MediaImageCard(
|
||||
imageUrl = uiModel.posterUrl,
|
||||
title = uiModel.name,
|
||||
subtitle = "${uiModel.size} ${if (uiModel.type == LibraryKind.SERIES) "series" else "movies"}",
|
||||
onClick = onClick,
|
||||
modifier = modifier
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user