assistant: Fine-tune error toast design (#16373)
Just some super small padding and absolute-positioning tweaks. --- Release Notes: - N/A
This commit is contained in:
parent
35cd397a40
commit
e36e605c96
1 changed files with 8 additions and 7 deletions
|
@ -3506,7 +3506,8 @@ impl ContextEditor {
|
||||||
};
|
};
|
||||||
Some(
|
Some(
|
||||||
h_flex()
|
h_flex()
|
||||||
.p_3()
|
.px_3()
|
||||||
|
.py_2()
|
||||||
.border_b_1()
|
.border_b_1()
|
||||||
.border_color(cx.theme().colors().border_variant)
|
.border_color(cx.theme().colors().border_variant)
|
||||||
.bg(cx.theme().colors().editor_background)
|
.bg(cx.theme().colors().editor_background)
|
||||||
|
@ -3655,8 +3656,8 @@ impl Render for ContextEditor {
|
||||||
this.child(
|
this.child(
|
||||||
div()
|
div()
|
||||||
.absolute()
|
.absolute()
|
||||||
.right_4()
|
.right_3()
|
||||||
.bottom_10()
|
.bottom_12()
|
||||||
.max_w_96()
|
.max_w_96()
|
||||||
.py_2()
|
.py_2()
|
||||||
.px_3()
|
.px_3()
|
||||||
|
@ -3670,8 +3671,8 @@ impl Render for ContextEditor {
|
||||||
this.child(
|
this.child(
|
||||||
div()
|
div()
|
||||||
.absolute()
|
.absolute()
|
||||||
.right_4()
|
.right_3()
|
||||||
.bottom_10()
|
.bottom_12()
|
||||||
.max_w_96()
|
.max_w_96()
|
||||||
.py_2()
|
.py_2()
|
||||||
.px_3()
|
.px_3()
|
||||||
|
@ -3682,12 +3683,12 @@ impl Render for ContextEditor {
|
||||||
.gap_0p5()
|
.gap_0p5()
|
||||||
.child(
|
.child(
|
||||||
h_flex()
|
h_flex()
|
||||||
.gap_1()
|
.gap_1p5()
|
||||||
.items_center()
|
.items_center()
|
||||||
.child(Icon::new(IconName::XCircle).color(Color::Error))
|
.child(Icon::new(IconName::XCircle).color(Color::Error))
|
||||||
.child(
|
.child(
|
||||||
Label::new("Error interacting with language model")
|
Label::new("Error interacting with language model")
|
||||||
.weight(FontWeight::SEMIBOLD),
|
.weight(FontWeight::MEDIUM),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue