mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
Fix layout issues with feedback modal
The feedback modal still needs a styling update
This commit is contained in:
parent
e5ce5e8692
commit
036636ee80
@ -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)),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user