Skip to content

Commit

Permalink
#260 TreeElementSelection appearance for last and first element of se…
Browse files Browse the repository at this point in the history
…lection
  • Loading branch information
fscarponi committed Dec 1, 2023
1 parent 079b0b5 commit bf31f5d
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 bf31f5d

Please sign in to comment.