Keep inspector Apply and Revert visible above scrolling properties
This commit is contained in:
@@ -804,22 +804,24 @@ fn inspector(app: &App) -> View<'_, Message> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
body = body.push(
|
let actions = row![
|
||||||
row![
|
|
||||||
button(text("Apply changes").size(12))
|
button(text("Apply changes").size(12))
|
||||||
.padding([9, 12])
|
.padding([9, 12])
|
||||||
.on_press(Message::Apply)
|
.on_press(Message::Apply)
|
||||||
.width(Fill),
|
.width(Fill),
|
||||||
action("Revert", Message::RevertProperties)
|
action("Revert", Message::RevertProperties)
|
||||||
]
|
]
|
||||||
.spacing(5),
|
.spacing(5);
|
||||||
);
|
|
||||||
if let Some(d) = &app.draft {
|
if let Some(d) = &app.draft {
|
||||||
body = body.push(forms::view(d, p));
|
body = body.push(forms::view(d, p));
|
||||||
}
|
}
|
||||||
container(
|
container(
|
||||||
column![
|
column![
|
||||||
tabs,
|
tabs,
|
||||||
|
container(actions).padding(iced::Padding {
|
||||||
|
right: 14.,
|
||||||
|
..Default::default()
|
||||||
|
}),
|
||||||
scrollable(body.padding(iced::Padding {
|
scrollable(body.padding(iced::Padding {
|
||||||
right: 14.,
|
right: 14.,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|||||||
Reference in New Issue
Block a user