From 36c807fbce004899c8e1d4d7c6bd74a114edb8a0 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Mon, 23 Nov 2026 11:04:47 -0500 Subject: [PATCH] fix(ui): the compact chat menu slides the other controls away instead of cutting them --- .../com/droiddeck/launcher/ui/AgentPage.kt | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/ui/AgentPage.kt b/app/src/main/java/com/droiddeck/launcher/ui/AgentPage.kt index 7ad82711f1..17d226b185 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/AgentPage.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/AgentPage.kt @@ -11,6 +11,7 @@ import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.animation.expandVertically import androidx.compose.animation.fadeIn import androidx.compose.animation.shrinkHorizontally +import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.expandHorizontally import androidx.compose.animation.fadeOut import androidx.compose.animation.shrinkVertically @@ -229,9 +230,12 @@ private fun AgentPageContent( val topBar: @Composable () -> Unit = { AgentTopBar(panel, togglePanel, inputModifier, menu) } val inlineControls: (@Composable () -> Unit)? = if (inline) ({ // The open menu needs the row's width for its own buttons. - if (!menuOpen) { - ModelChip(panel, togglePanel, inputModifier, compact = true) - ContextRing("agent-usage", onClick = { togglePanel(AgentPanel.USAGE) }) + androidx.compose.animation.AnimatedVisibility(!menuOpen, enter = expandHorizontally(expandFrom = Alignment.Start) + fadeIn(), + exit = shrinkHorizontally(shrinkTowards = Alignment.Start) + fadeOut()) { + Row(verticalAlignment = Alignment.CenterVertically) { + ModelChip(panel, togglePanel, inputModifier, compact = true) + ContextRing("agent-usage", onClick = { togglePanel(AgentPanel.USAGE) }) + } } menu() }) else null @@ -806,7 +810,7 @@ private fun AgentEditor(composer: ComposerState, draftState: MutableState