From 6f0e82f0efc8c990ba5ac2da87871312b52d524c Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Sat, 30 Sep 2023 20:23:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=95=BF=E6=8C=89=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E5=99=A8=E5=BD=A2=E7=8A=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/huanchengfly/tieba/post/ui/widgets/compose/Menu.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/widgets/compose/Menu.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/widgets/compose/Menu.kt index 65a2c3ea..da5bef6e 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/widgets/compose/Menu.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/widgets/compose/Menu.kt @@ -113,7 +113,7 @@ fun LongClickMenu( enabled: Boolean = true, menuState: MenuState = rememberMenuState(), onClick: (() -> Unit)? = null, - shape: Shape = RoundedCornerShape(14.dp), + shape: Shape = RoundedCornerShape(0.dp), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, indication: Indication? = LocalIndication.current, content: @Composable () -> Unit, @@ -129,6 +129,7 @@ fun LongClickMenu( } Box( modifier = modifier + .clip(shape) .combinedClickable( interactionSource = interactionSource, indication = indication, @@ -153,9 +154,7 @@ fun LongClickMenu( DropdownMenu( expanded = menuState.expanded, onDismissRequest = { menuState.expanded = false }, - modifier = Modifier - .clip(shape) - .background(color = ExtendedTheme.colors.menuBackground) + modifier = Modifier.background(color = ExtendedTheme.colors.menuBackground) ) { ProvideContentColor(color = ExtendedTheme.colors.text) { menuContent()