Skip to content

Commit 5821a40

Browse files
authored
Merge pull request #1154 from tunjid/tj/shaped-clickable-4
Use shaped clickable with ProfileSearchResults
2 parents 5410cb5 + 85aaca0 commit 5821a40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

feature/search/src/commonMain/kotlin/com/tunjid/heron/search/ui/searchresults/ProfileSearchResults.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
package com.tunjid.heron.search.ui.searchresults
1818

1919
import androidx.compose.animation.ExperimentalSharedTransitionApi
20-
import androidx.compose.foundation.clickable
2120
import androidx.compose.foundation.layout.Arrangement
2221
import androidx.compose.foundation.layout.Column
2322
import androidx.compose.foundation.layout.size
2423
import androidx.compose.foundation.lazy.LazyColumn
2524
import androidx.compose.foundation.lazy.LazyListState
2625
import androidx.compose.foundation.lazy.items
26+
import androidx.compose.foundation.shape.CircleShape
2727
import androidx.compose.runtime.Composable
2828
import androidx.compose.runtime.getValue
2929
import androidx.compose.runtime.remember
@@ -49,6 +49,7 @@ import com.tunjid.heron.ui.AttributionLayout
4949
import com.tunjid.heron.ui.PaneTransitionScope
5050
import com.tunjid.heron.ui.UiTokens
5151
import com.tunjid.heron.ui.UiTokens.bottomNavAndInsetPaddingValues
52+
import com.tunjid.heron.ui.modifiers.shapedClickable
5253
import com.tunjid.heron.ui.shapes.RoundedPolygonShape
5354
import com.tunjid.tiler.compose.PivotedTilingEffect
5455
import com.tunjid.treenav.compose.UpdatedMovableStickySharedElementOf
@@ -145,7 +146,7 @@ private fun ProfileSearchResult(
145146
) = with(paneTransitionScope) {
146147
AttributionLayout(
147148
modifier = Modifier
148-
.clickable {
149+
.shapedClickable {
149150
onProfileClicked(
150151
result.profileWithViewerState.profile,
151152
sharedElementPrefix,
@@ -155,7 +156,7 @@ private fun ProfileSearchResult(
155156
UpdatedMovableStickySharedElementOf(
156157
modifier = Modifier
157158
.size(UiTokens.avatarSize)
158-
.clickable {
159+
.shapedClickable(CircleShape) {
159160
onProfileClicked(
160161
result.profileWithViewerState.profile,
161162
sharedElementPrefix,

0 commit comments

Comments
 (0)