Show a very basic code actions menu
This commit is contained in:
parent
23fd1e19dc
commit
a30b47aa5f
2 changed files with 31 additions and 8 deletions
|
@ -804,7 +804,7 @@ impl EditorElement {
|
|||
cx.with_z_index(1, |cx| {
|
||||
let line_height = self.style.text.line_height_in_pixels(cx.rem_size());
|
||||
let available_space = size(
|
||||
AvailableSpace::Definite(cx.viewport_size().width * 0.7),
|
||||
AvailableSpace::MinContent,
|
||||
AvailableSpace::Definite(
|
||||
(12. * line_height).min((bounds.size.height - line_height) / 2.),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue