Fix layout issues with feedback modal
The feedback modal still needs a styling update
This commit is contained in:
parent
e5ce5e8692
commit
036636ee80
1 changed files with 47 additions and 52 deletions
|
@ -446,8 +446,6 @@ impl Render for FeedbackModal {
|
||||||
.border_color(cx.theme().colors().border)
|
.border_color(cx.theme().colors().border)
|
||||||
.child(self.feedback_editor.clone()),
|
.child(self.feedback_editor.clone()),
|
||||||
)
|
)
|
||||||
.child(
|
|
||||||
div()
|
|
||||||
.child(
|
.child(
|
||||||
h_stack()
|
h_stack()
|
||||||
.bg(cx.theme().colors().editor_background)
|
.bg(cx.theme().colors().editor_background)
|
||||||
|
@ -466,7 +464,7 @@ impl Render for FeedbackModal {
|
||||||
.justify_between()
|
.justify_between()
|
||||||
.gap_1()
|
.gap_1()
|
||||||
.child(
|
.child(
|
||||||
Button::new("community_repo", "Community Repo")
|
Button::new("community_repository", "Community Repository")
|
||||||
.style(ButtonStyle::Transparent)
|
.style(ButtonStyle::Transparent)
|
||||||
.icon(Icon::ExternalLink)
|
.icon(Icon::ExternalLink)
|
||||||
.icon_position(IconPosition::End)
|
.icon_position(IconPosition::End)
|
||||||
|
@ -482,9 +480,7 @@ impl Render for FeedbackModal {
|
||||||
.color(Color::Muted)
|
.color(Color::Muted)
|
||||||
.on_click(cx.listener(move |_, _, cx| {
|
.on_click(cx.listener(move |_, _, cx| {
|
||||||
cx.spawn(|this, mut cx| async move {
|
cx.spawn(|this, mut cx| async move {
|
||||||
this.update(&mut cx, |_, cx| {
|
this.update(&mut cx, |_, cx| cx.emit(DismissEvent))
|
||||||
cx.emit(DismissEvent)
|
|
||||||
})
|
|
||||||
.ok();
|
.ok();
|
||||||
})
|
})
|
||||||
.detach();
|
.detach();
|
||||||
|
@ -508,7 +504,6 @@ impl Render for FeedbackModal {
|
||||||
.when(!self.can_submit(), |this| this.disabled(true)),
|
.when(!self.can_submit(), |this| this.disabled(true)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue