mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-12 19:11:23 +03:00
moved code action indicator to the left
This commit is contained in:
parent
cb3e873a67
commit
2036fc48b5
@ -801,7 +801,6 @@ impl DisplayRow {
|
||||
}
|
||||
}
|
||||
|
||||
// Force users to think about the display map when using this type
|
||||
pub fn start(&self) -> DisplayPoint {
|
||||
DisplayPoint::new(self.0, 0)
|
||||
}
|
||||
|
@ -570,7 +570,7 @@ impl EditorElement {
|
||||
}
|
||||
|
||||
if let Some((row, indicator)) = layout.code_actions_indicator.as_mut() {
|
||||
let mut x = bounds.width() - layout.gutter_padding;
|
||||
let mut x = 0.;
|
||||
let mut y = *row as f32 * line_height - scroll_top;
|
||||
x += ((layout.gutter_padding + layout.gutter_margin) - indicator.size().x()) / 2.;
|
||||
y += (line_height - indicator.size().y()) / 2.;
|
||||
|
Loading…
Reference in New Issue
Block a user