Skip to content

Commit

Permalink
#260 TreeElementSelection appearance fix (#261)
Browse files Browse the repository at this point in the history
#260 TreeElementSelection appearance for last and first element of selection
  • Loading branch information
fscarponi authored Dec 1, 2023
1 parent 6534c27 commit ea63b53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ public fun <T> BasicLazyTree(
val backgroundShape by derivedStateOf {
val hasRoundedTopCorners = flattenedTree.getOrNull(index - 1)?.id?.let {
it !in treeState.delegate.selectedKeys
} ?: false
} ?: true
val hasRoundedBottomCorners = flattenedTree.getOrNull(index + 1)?.id?.let {
it !in treeState.delegate.selectedKeys
} ?: false
} ?: true
val topCornerSize = computerCornerSize(hasRoundedTopCorners, elementBackgroundCornerSize)
val bottomCornerSize = computerCornerSize(hasRoundedBottomCorners, elementBackgroundCornerSize)
RoundedCornerShape(
Expand Down

0 comments on commit ea63b53

Please sign in to comment.