Skip to content

Commit

Permalink
Clip search correction to shape
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Aug 3, 2024
1 parent edbdbde commit e6ed0ea
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import androidx.compose.ui.*
import androidx.compose.ui.draw.*
import androidx.compose.ui.focus.*
import androidx.compose.ui.graphics.*
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.platform.*
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.text.style.TextOverflow
Expand Down Expand Up @@ -362,9 +363,11 @@ class SearchAppPage(override val state: AppPageState, val context: AppContext):

@Composable
private fun SuggestedSearchCorrection(correction: String, modifier: Modifier = Modifier, onSelected: () -> Unit, onDismissed: () -> Unit) {
val shape: Shape = CircleShape
Row(
modifier
.border(2.dp, context.theme.accent, CircleShape)
.border(2.dp, context.theme.accent, shape)
.clip(shape)
.clickable(onClick = onSelected)
.padding(horizontal = 10.dp),
verticalAlignment = Alignment.CenterVertically
Expand Down

0 comments on commit e6ed0ea

Please sign in to comment.