mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 07:21:58 +00:00
refactor: clickable condition in HeroContentBlock
This commit is contained in:
parent
d5b6152c39
commit
b2df0dfd91
1 changed files with 2 additions and 2 deletions
|
|
@ -358,7 +358,7 @@ private fun HeroContentBlock(
|
|||
modifier = Modifier
|
||||
.fillMaxWidth(layout.logoWidthFraction)
|
||||
.aspectRatio(2.6f)
|
||||
.clickable(enabled = !layout.isTablet && onItemClick != null) {
|
||||
.clickable(enabled = onItemClick != null) {
|
||||
onItemClick?.invoke(item)
|
||||
},
|
||||
alignment = if (layout.isTablet) Alignment.CenterStart else Alignment.Center,
|
||||
|
|
@ -369,7 +369,7 @@ private fun HeroContentBlock(
|
|||
text = item.name,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.clickable(enabled = !layout.isTablet && onItemClick != null) {
|
||||
.clickable(enabled = onItemClick != null) {
|
||||
onItemClick?.invoke(item)
|
||||
},
|
||||
style = if (layout.isTablet) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue