Keep inspector Apply and Revert visible above scrolling properties

This commit is contained in:
2026-09-22 15:47:59 -07:00
parent b10b28cefd
commit e2536f6f16
+12 -10
View File
@@ -804,22 +804,24 @@ fn inspector(app: &App) -> View<'_, Message> {
);
}
}
body = body.push(
row![
button(text("Apply changes").size(12))
.padding([9, 12])
.on_press(Message::Apply)
.width(Fill),
action("Revert", Message::RevertProperties)
]
.spacing(5),
);
let actions = row![
button(text("Apply changes").size(12))
.padding([9, 12])
.on_press(Message::Apply)
.width(Fill),
action("Revert", Message::RevertProperties)
]
.spacing(5);
if let Some(d) = &app.draft {
body = body.push(forms::view(d, p));
}
container(
column![
tabs,
container(actions).padding(iced::Padding {
right: 14.,
..Default::default()
}),
scrollable(body.padding(iced::Padding {
right: 14.,
..Default::default()