fix(input): always show other controls in the wide binder

This commit is contained in:
Kurt Himebauch committed 2026-12-04 15:38:16 -05:00
1 parent fdcef6c3e5
commit 3c4d349a47
1 file changed
+2 -2
@@ -95,7 +95,7 @@ internal fun InputButtonsPane(bindingsId: String, scope: String, baseId: String?
}.testTag("input-buttons")) {
val wide = maxWidth > 700.dp
val boxWidth = maxWidth
var others by remember { mutableStateOf(wide) }
var others by remember { mutableStateOf(false) }
val header: @Composable () -> Unit = {
Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(4.dp)) {
@@ -123,7 +123,7 @@ internal fun InputButtonsPane(bindingsId: String, scope: String, baseId: String?
modifier = Modifier.testTag("input-buttons-others")) { others = !others }
onMore?.let { SecondaryButton(stringResource(R.string.flow_more_buttons), compact = true, onClick = it) }
}
if (others) OtherControls(selected, showTitle = wide) { selected = it }
if (wide || others) OtherControls(selected, showTitle = wide) { selected = it }
val summaries = mutableListOf<String>()
for (c in changed) summaries += "${c.label} → ${actionLabel(preset.controls[c] ?: InputAction.Native())}"
if (summaries.isNotEmpty()) Text(summaries.joinToString(" · "),