We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 765796a + a115f33 commit 73b562eCopy full SHA for 73b562e
common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/CharacterAvatar.kt
@@ -59,14 +59,15 @@ fun CharacterAvatar(
59
ItemIcon(
60
url = url,
61
size = size,
62
- modifier = Modifier.clickable(
63
- enabled = zoomable,
64
- interactionSource = remember { MutableInteractionSource() },
65
- indication = rememberRipple(
66
- bounded = false,
67
- ),
68
- onClick = { dialogVisible = true },
69
- )
+ modifier = if (zoomable)
+ Modifier.clickable(
+ interactionSource = remember { MutableInteractionSource() },
+ indication = rememberRipple(
+ bounded = false,
+ ),
+ onClick = { dialogVisible = true },
+ )
70
+ else Modifier
71
)
72
}
73
0 commit comments