mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-10 11:08:56 +01:00
ExtensionScreen: Adjust item visual (#8120)
* ExtensionScreen: Adjust item visual * Move install status view and add progress indicator * Add secondary item modifier to info texts * Wrap info texts with FlowRow in case of unavailable space * Remove language text in non-installed items Extra content: * Change the list key to be more consistent * General cleanups * typo
This commit is contained in:
@@ -212,13 +212,5 @@ sealed interface ExtensionUiModel {
|
||||
data class Item(
|
||||
val extension: Extension,
|
||||
val installStep: InstallStep,
|
||||
) : ExtensionUiModel {
|
||||
|
||||
fun key(): String {
|
||||
return when {
|
||||
extension is Extension.Installed && extension.hasUpdate -> "${extension.pkgName}_update"
|
||||
else -> "${extension.pkgName}_${installStep.name}"
|
||||
}
|
||||
}
|
||||
}
|
||||
) : ExtensionUiModel
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user