ui_prompt: Fix prompt dialog is hard to see on large screen (#35348)
Closes #18516 Release Notes: - Improved visibility of prompt dialog on Linux by dimming the background.
This commit is contained in:
parent
f4bd524d7f
commit
794ade8b6d
1 changed files with 22 additions and 18 deletions
|
@ -190,24 +190,28 @@ impl Render for ZedPromptRenderer {
|
||||||
}),
|
}),
|
||||||
));
|
));
|
||||||
|
|
||||||
div().size_full().occlude().child(
|
div()
|
||||||
div()
|
.size_full()
|
||||||
.size_full()
|
.occlude()
|
||||||
.absolute()
|
.bg(gpui::black().opacity(0.2))
|
||||||
.top_0()
|
.child(
|
||||||
.left_0()
|
div()
|
||||||
.flex()
|
.size_full()
|
||||||
.flex_col()
|
.absolute()
|
||||||
.justify_around()
|
.top_0()
|
||||||
.child(
|
.left_0()
|
||||||
div()
|
.flex()
|
||||||
.w_full()
|
.flex_col()
|
||||||
.flex()
|
.justify_around()
|
||||||
.flex_row()
|
.child(
|
||||||
.justify_around()
|
div()
|
||||||
.child(prompt),
|
.w_full()
|
||||||
),
|
.flex()
|
||||||
)
|
.flex_row()
|
||||||
|
.justify_around()
|
||||||
|
.child(prompt),
|
||||||
|
),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue