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) .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)),
), ),
), ),
),
) )
} }
} }