Fix layout issues with feedback modal

The feedback modal still needs a styling update
This commit is contained in:
Joseph T. Lyons 2023-12-20 23:54:50 -05:00
parent e5ce5e8692
commit 036636ee80

View File

@ -446,8 +446,6 @@ impl Render for FeedbackModal {
.border_color(cx.theme().colors().border)
.child(self.feedback_editor.clone()),
)
.child(
div()
.child(
h_stack()
.bg(cx.theme().colors().editor_background)
@ -466,7 +464,7 @@ impl Render for FeedbackModal {
.justify_between()
.gap_1()
.child(
Button::new("community_repo", "Community Repo")
Button::new("community_repository", "Community Repository")
.style(ButtonStyle::Transparent)
.icon(Icon::ExternalLink)
.icon_position(IconPosition::End)
@ -482,9 +480,7 @@ impl Render for FeedbackModal {
.color(Color::Muted)
.on_click(cx.listener(move |_, _, cx| {
cx.spawn(|this, mut cx| async move {
this.update(&mut cx, |_, cx| {
cx.emit(DismissEvent)
})
this.update(&mut cx, |_, cx| cx.emit(DismissEvent))
.ok();
})
.detach();
@ -508,7 +504,6 @@ impl Render for FeedbackModal {
.when(!self.can_submit(), |this| this.disabled(true)),
),
),
),
)
}
}