Change summary
crates/workspace/src/modal_layer.rs | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
Detailed changes
@@ -139,21 +139,15 @@ impl Render for ModalLayer {
return div();
};
- div()
- .occlude()
- .absolute()
- .size_full()
- .top_0()
- .left_0()
- .child(
- v_flex()
- .h(px(0.0))
- .top_20()
- .flex()
- .flex_col()
- .items_center()
- .track_focus(&active_modal.focus_handle)
- .child(h_flex().child(active_modal.modal.view())),
- )
+ div().absolute().size_full().top_0().left_0().child(
+ v_flex()
+ .h(px(0.0))
+ .top_20()
+ .flex()
+ .flex_col()
+ .items_center()
+ .track_focus(&active_modal.focus_handle)
+ .child(h_flex().occlude().child(active_modal.modal.view())),
+ )
}
}