mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
Merge pull request #1196 from zed-industries/context-menu-max-width
Cap context menu's width to cover at most 70% of the window
This commit is contained in:
commit
fcd99c865e
1 changed files with 1 additions and 1 deletions
|
@ -1264,7 +1264,7 @@ impl Element for EditorElement {
|
|||
SizeConstraint {
|
||||
min: Vector2F::zero(),
|
||||
max: vec2f(
|
||||
f32::INFINITY,
|
||||
cx.window_size.x() * 0.7,
|
||||
(12. * line_height).min((size.y() - line_height) / 2.),
|
||||
),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue