From 42cd1336925b4beb7e09de9d5b49e6457bd60044 Mon Sep 17 00:00:00 2001 From: Super12138 <70494801+Super12138@users.noreply.github.com> Date: Mon, 13 Jan 2025 22:44:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20FAB=20=E7=BB=84=E4=BB=B6=E5=8D=A0?= =?UTF-8?q?=E4=BD=8D=E5=99=A8=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../super12138/todo/ui/components/FloatingActionButton.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/cn/super12138/todo/ui/components/FloatingActionButton.kt b/app/src/main/kotlin/cn/super12138/todo/ui/components/FloatingActionButton.kt index f13f4c9..c3b7b27 100644 --- a/app/src/main/kotlin/cn/super12138/todo/ui/components/FloatingActionButton.kt +++ b/app/src/main/kotlin/cn/super12138/todo/ui/components/FloatingActionButton.kt @@ -39,9 +39,12 @@ fun AnimatedExtendedFloatingActionButton( verticalAlignment = Alignment.CenterVertically ) { icon() - Spacer(Modifier.width(8.dp)) + // Spacer(Modifier.width(if (expanded) 8.dp else 0.dp)) AnimatedVisibility(expanded) { - text() + Row { + Spacer(Modifier.width(8.dp)) + text() + } } } }