mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-1130 Widgets | Enhancement | Expand-widget icon touch area is too small (#3068)
This commit is contained in:
parent
25745fe220
commit
817a2785d6
1 changed files with 11 additions and 6 deletions
|
@ -279,20 +279,25 @@ fun WidgetHeader(
|
|||
|
||||
val rotation = getAnimatableRotation(isExpanded)
|
||||
|
||||
Image(
|
||||
painterResource(R.drawable.ic_widget_tree_expand),
|
||||
contentDescription = "Expand icon",
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.align(Alignment.CenterEnd)
|
||||
.padding(end = 12.dp)
|
||||
.rotate(rotation.value)
|
||||
.then(
|
||||
if (isInEditMode)
|
||||
Modifier
|
||||
else
|
||||
Modifier.noRippleClickable { onExpandElement() }
|
||||
)
|
||||
)
|
||||
) {
|
||||
Image(
|
||||
painterResource(R.drawable.ic_widget_tree_expand),
|
||||
contentDescription = "Expand icon",
|
||||
modifier = Modifier
|
||||
.rotate(rotation.value)
|
||||
.padding(horizontal = 12.dp)
|
||||
)
|
||||
}
|
||||
|
||||
AnimatedVisibility(
|
||||
visible = isInEditMode,
|
||||
modifier = Modifier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue