Fix elevation on go_to_line2
This commit is contained in:
parent
e0416e9d2a
commit
4ef95f05e8
1 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ use gpui::{
|
||||||
};
|
};
|
||||||
use text::{Bias, Point};
|
use text::{Bias, Point};
|
||||||
use theme::ActiveTheme;
|
use theme::ActiveTheme;
|
||||||
use ui::{h_stack, modal, v_stack, Label, LabelColor};
|
use ui::{h_stack, v_stack, Label, LabelColor, StyledExt};
|
||||||
use util::paths::FILE_ROW_COLUMN_DELIMITER;
|
use util::paths::FILE_ROW_COLUMN_DELIMITER;
|
||||||
use workspace::{Modal, ModalEvent, Workspace};
|
use workspace::{Modal, ModalEvent, Workspace};
|
||||||
|
|
||||||
|
@ -148,7 +148,8 @@ impl Render for GoToLine {
|
||||||
type Element = Div<Self>;
|
type Element = Div<Self>;
|
||||||
|
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||||
modal(cx)
|
div()
|
||||||
|
.elevation_2(cx)
|
||||||
.context("GoToLine")
|
.context("GoToLine")
|
||||||
.on_action(Self::cancel)
|
.on_action(Self::cancel)
|
||||||
.on_action(Self::confirm)
|
.on_action(Self::confirm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue