fix: apply the toggle overflow fix to the user list

This commit is contained in:
Jonathan Capps 2025-05-12 21:54:43 +01:00 committed by Michael Murphy
parent 5300b717c7
commit f3d99c98a9

View file

@ -778,8 +778,9 @@ fn user_list() -> Section<crate::pages::Message> {
column::with_capacity(2)
.push(text::body(crate::fl!("administrator")))
.push(text::caption(crate::fl!("administrator", "desc")))
.width(Length::Fill)
.into(),
widget::horizontal_space().width(Length::Fill).into(),
Space::new(5, 0).into(),
widget::toggler(user.is_admin)
.on_toggle(|enabled| {
Message::SelectedUserSetAdmin(user.id, enabled)