mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Occlude only modal and not the space around it used to center it
This commit is contained in:
parent
91a0923fc4
commit
2b67bb27cf
@ -139,13 +139,7 @@ impl Render for ModalLayer {
|
||||
return div();
|
||||
};
|
||||
|
||||
div()
|
||||
.occlude()
|
||||
.absolute()
|
||||
.size_full()
|
||||
.top_0()
|
||||
.left_0()
|
||||
.child(
|
||||
div().absolute().size_full().top_0().left_0().child(
|
||||
v_flex()
|
||||
.h(px(0.0))
|
||||
.top_20()
|
||||
@ -153,7 +147,7 @@ impl Render for ModalLayer {
|
||||
.flex_col()
|
||||
.items_center()
|
||||
.track_focus(&active_modal.focus_handle)
|
||||
.child(h_flex().child(active_modal.modal.view())),
|
||||
.child(h_flex().occlude().child(active_modal.modal.view())),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user