Skip to content

Commit

Permalink
Merge pull request #232 from fmasa/fix-avatar
Browse files Browse the repository at this point in the history
Fix avatar change
  • Loading branch information
fmasa authored Dec 16, 2023
2 parents 765796a + a115f33 commit 73b562e
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ fun CharacterAvatar(
ItemIcon(
url = url,
size = size,
modifier = Modifier.clickable(
enabled = zoomable,
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(
bounded = false,
),
onClick = { dialogVisible = true },
)
modifier = if (zoomable)
Modifier.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(
bounded = false,
),
onClick = { dialogVisible = true },
)
else Modifier
)
}
}
Expand Down

0 comments on commit 73b562e

Please sign in to comment.