UI fix of button overlap in label lists

This commit is contained in:
2026-09-09 10:23:37 +02:00
parent d2d713c616
commit c70bb808c1
@@ -219,6 +219,7 @@ fun CategoryList(
onDelete = { onDelete(category) }
)
}
item { LabelListBottomSpacer() }
}
}
@@ -238,9 +239,19 @@ fun PaymentModeList(
onDelete = { onDelete(pm) }
)
}
item { LabelListBottomSpacer() }
}
}
/**
* Keeps the last row clear of the add button, which otherwise sits on top of its delete icon and
* swallows the tap - with nothing below to scroll to, that row simply cannot be deleted.
*/
@Composable
private fun LabelListBottomSpacer() {
Spacer(modifier = Modifier.height(64.dp).fillMaxWidth())
}
@Composable
fun LabelItem(
name: String,