repl: Apply border for error output on left (#16334)
This commit is contained in:
parent
40d97fd346
commit
f7f5a25584
1 changed files with 22 additions and 8 deletions
|
@ -257,17 +257,31 @@ impl ErrorView {
|
||||||
|
|
||||||
Some(
|
Some(
|
||||||
v_flex()
|
v_flex()
|
||||||
.w_full()
|
.gap_3()
|
||||||
.px(padding)
|
|
||||||
.py(padding)
|
|
||||||
.border_1()
|
|
||||||
.border_color(theme.status().error_border)
|
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
.font_weight(FontWeight::BOLD)
|
.font_buffer(cx)
|
||||||
.child(format!("{}: {}", self.ename, self.evalue)),
|
.child(
|
||||||
|
Label::new(format!("{}: ", self.ename.clone()))
|
||||||
|
// .size(LabelSize::Large)
|
||||||
|
.color(Color::Error)
|
||||||
|
.weight(FontWeight::BOLD),
|
||||||
|
)
|
||||||
|
.child(
|
||||||
|
Label::new(self.evalue.clone())
|
||||||
|
// .size(LabelSize::Large)
|
||||||
|
.weight(FontWeight::BOLD),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.child(
|
||||||
|
div()
|
||||||
|
.w_full()
|
||||||
|
.px(padding)
|
||||||
|
.py(padding)
|
||||||
|
.border_l_1()
|
||||||
|
.border_color(theme.status().error_border)
|
||||||
|
.child(self.traceback.render(cx)),
|
||||||
)
|
)
|
||||||
.child(self.traceback.render(cx))
|
|
||||||
.into_any_element(),
|
.into_any_element(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue