Skip to content

Commit a115f33

Browse files
committed
Fix avatar change
1 parent 765796a commit a115f33

File tree

1 file changed

+9
-8
lines changed
  • common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui

1 file changed

+9
-8
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/CharacterAvatar.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ fun CharacterAvatar(
5959
ItemIcon(
6060
url = url,
6161
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-
)
62+
modifier = if (zoomable)
63+
Modifier.clickable(
64+
interactionSource = remember { MutableInteractionSource() },
65+
indication = rememberRipple(
66+
bounded = false,
67+
),
68+
onClick = { dialogVisible = true },
69+
)
70+
else Modifier
7071
)
7172
}
7273
}

0 commit comments

Comments
 (0)